dos Questions
3
Solved
I'm writing a script that will run from the Task Scheduler. It's not executing correctly from the Scheduler, but will execute correctly from the command line. (Possibly a permissions issue?) I want...
Tyrothricin asked 16/11, 2011 at 19:53
4
Solved
I am learning assembly for x86 using DosBox emulator. I am trying to perform multiplication. I do not get how it works. When I write the following code:
mov al, 3
mul 2
I get an error. Although,...
Dehnel asked 10/12, 2013 at 15:58
4
Solved
Many of you may recall the old DOS program--debug. Though outdated in many respects, one of the nice things about it was that one could easily find the byte-sequence for a given instruction w...
8
Solved
I'm getting stair-step output like this
My program works correctly, except that when I print a new line, and then print something in the current line, it shows on the next line but with some spac...
10
Solved
What is the difference between the a.bat, a.com and a.exe extensions?
Paryavi asked 22/1, 2010 at 7:13
7
Solved
Is it possible in MS-DOS batch file to pause the script and wait for user to hit enter key?
I wish to do this inside a for loop. After each iteration, I want the script to pause and wait for user...
Gearard asked 30/4, 2013 at 14:28
3
I've been looking at using colours in a DOS program I'm writing in C. I was told that conio.h has the textcolor() function, but when I use it in my code, the compiler/linker throws errors at me say...
3
Solved
The input in next program (using DOS.BufferedInput function 0Ah) works OK, but when I ask to show the output, DOS doesn't display anything at all. How is this possible?
ORG 256
mov dx, msg1
mov ...
11
Solved
In earlier versions of MS-DOS - I want to say version 7, but I could be wrong - there was a deltree command, which recursively deleted all subdirectories and files from a given path.
del...
Bloemfontein asked 3/12, 2008 at 21:59
5
Solved
When I add two values in 16 bit assembly, what is the best way to print the result to console?
At the moment I have this code:
;;---CODE START---;;
mov ax, 1 ;put 1 into ax
add ax, 2 ; add 2 to a...
4
Solved
Both command creates folders. I read that MKDIR can create even subfolders.
Is that only difference?
Why there are two commands doing the same?
Which one should I use?
Angy asked 3/9, 2015 at 8:8
4
Solved
Most of the assembly code is terminate by the following instructions
MOV AH, 4CH
INT 21H
What does it mean by "MOV AH, 4CH" ?
Lipson asked 3/3, 2017 at 8:19
2
Solved
In a directory using Java I want to check each subdirectory for a DOS-specific attribute, but I want the code to run on other file systems as well. I can do this, which seems to be what the Java AP...
How asked 27/7, 2022 at 16:23
7
I've been trying to print a new line while also printing the alphabet using assembly language in nasmide for the past few days and can't get it, what I've tried so far has either printed nothing, p...
4
I want to set the leading zero bits in any size integer to 1 in standard C++.
eg.
0001 0011 0101 1111 -> 1111 0011 0101 1111
All the algorithms I've found to do this require a rather expensive l...
Bulbiferous asked 18/9, 2022 at 6:3
2
Solved
I tring to excute a simple batch file scripts :
echo %1
set var = %1
echo %var%
When I am running it in XP, it is giving me expected output, but When I am running it in Vista or windows 7, I am ...
Carilyn asked 8/9, 2012 at 7:0
7
Solved
Can I use dir command-line to get a list of sub-folders and their files, ordered by folder-names, and not just file-names ?
using
dir /s/b/o:gn > f.txt
I first get all sub-folders and only th...
Mats asked 10/8, 2010 at 9:17
7
Solved
I am trying to create a sleep/delay procedure in 16bit MASM Assembly x86 that will, say, print a character on the screen every 500ms.
From the research I have done, it seems that there are three me...
1
Solved
This question is purely academic because no-one uses MS-DOS now, but I still want to know why.
In some books and articles they said if you call a DOS interrupt during another one, it may cause a de...
Standstill asked 7/5, 2022 at 12:1
1
Solved
I'm trying to get my head around programming real mode MS-DOS in C. Using some old books on game programming as a starting point.
The source code in the book is written for Microsoft C, but I'm try...
3
Solved
One remotely familiar with windows/dos batch scripting will recognize this line:
@echo off
For many-many days, I was happy with the sentiment that the @ is how echo off is meant to be written at...
Tena asked 12/1, 2014 at 12:57
6
Solved
I want to find a string in a file using DOS:
For example
find "string" status.txt
And when it is found, I want to run a batch file.
What is the best way to do this?
Capriccio asked 6/1, 2010 at 0:46
3
Solved
I'm trying to get XCOPY to copy an entire directory tree and all its files, however, one of the directory paths includes a hidden folder, and although you can use the /h parm to specify copyi...
2
I've set up a DOSBox development environment with Turbo C++ intending to make a game with my friends.
I'm using C code, and am wondering how I'd link binary data into the EXE. (All my previous expe...
7
Solved
I need to delete files of a certain type (.zip files, say) from a folder, and all of its sub-folders, using the command line. Ideally I am looking for something that can be run as a .bat file in Wi...
Palmar asked 11/2, 2009 at 9:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.