dos

DOS assembly read two succeeding characters, and convert to number

I'm writing a simple program that takes in two numbers between 1-99, adds them and prints out the result. I'm done with the printing part, I can print up too three digits, 99+99=198 so it's enough for this program. I have the program working for two one digit numbers. Example: 1 1 = 2 , 4 4 = 8 So the digits is separated by spaces. ...

Need a debugger for Dos Assembly

Hi, I'm trying badly to track down a debugger for DOS assembly, it's really hard to debug this code and I need a debugger. Does anyone out there know where I can download any version of turbo debugger? ...

Using DOS/CMD/batch files how can you show Console output, and redirect the STDOUT and STDERR streams to files?

direct console to ok.log, and errors to error.log for example ...

xcopy with unc path adds virtual network drives

Hello When i copy files to a some network path with xcopy command I get new virtual drives on my pc . The problem is that i do that within a batch script that runs in scheduler so i get there a lot of drives to same location. How I can copy files to a network with out getting a new drives on the pc or just remove them ? Thanks. ...

How do I move to a UNC location and enter its password via a script?

I want to move my current path to some network UNC password protected path. I need to do it via batch script. How do I move to that UNC location and enter its password via a script? I thought doing it like pushd \\my\path but how do I enter the username and password? ...

How can I capture the return value of shutil.copy() in Python ( on DOS )?

Hi, I am trying to record the success or failure of a number of copy commands, into a log file. I'm using shutil.copy() - e.g. `str_list.append(getbitmapsfrom) game.bigbitmap = "i doubt this is there.bmp" str_list.append(game.bigbitmap) source = '\\'.join(str_list) shutil.copy (source, newbi...

How to run a C program in DOS prompt

I want to run a C program in DOS prompt. Is it possible? ...

multiple command executing in cmd?

I want to hide multiple files with the attrib <file path> +s +h but it stops after the first folder. I have this... @ech off attrib z:\test +s +h attrib C:\Documents and Settings\Administrator\Desktop\test +s +h Yes, I have two drives. But it stops execution after the first folder. How do I make it execute both commands. I know a...

How do I compare timestamps of files in a DOS batch script?

In DOS batch files, the method of achieving certain things is somewhat obfuscated. Fortunately, there is a fantastic reference site for DOS batch scripting: Simon Sheppard's SS64. (The same site also has plenty of information about Bash.) One difficulty is branching execution based on whether a directory is empty. The obvious if exist "...

DOS batch set problem

I had a problem with set not working in a batch file; it took a while to distil the problem; at first I thought it was to do with subroutine calls... The script @echo off setlocal set a=aaa echo a = "%a%" ( set b=bbb echo b = "%b%" ) produces the output a = "aaa" b = "" whereas I'd expect a = "aaa" b = "bbb" Why is this please?...

How do I append to an environment variable in a batch file?

I don't know how to describe exactly what I'm trying to do but here's an example batch file that demonstrates what I can't figure out.: I've got a batch file. Inside that batch file I'm trying to create a directory: Set CopyFrom = %~dp0 if Exist "%ProgramFiles(x86)" ( Set TargetDir = %ProgramFiles(x86)%\My Directory Name has spaces...

DOS execution of assembly code

I'm writing a chunk of assembly that will register a tsr and then exit. I'm struggling to figure out how to properly assemble this to a format that I can execute in dos. i'm have access to ubuntu 9.04 and windows xp. (linux method is preffered). If anyone can tell me how i go about assembling my code into a dos executable format, and t...

View ram in DOS

Is there a way in dos (im using a dos boot disk on a linux machine) to view portions of ram? ie. some form of command to read the binary at a given address? edit: my bootable floppy doesnt have debug on it. when i type debug it says 'bad command or file name how do i make a bootable dos floppy with debug on it? ...

Help writing DOS script to get get name of the most recent directory (time created)

Hey Guys, I need some help in getting the name of the most recent directory in a DOS script. I have found some information on getting the most recent file which works but I cannot get this to work on directories. For example,Here is my directory: drwxr-xr-x 2 usrpm Domain Users 0 Jun 29 10:34 _200903_V20 drwxr-xr-x 2 usrpm Domain ...

DOS Database - help needed to recognize what is it

Hello, today I got a copy of an old system from which I need to import data. The system is written in C and runs in DOS. It uses some kind of database. The file format seems to be rather simple(1 file = 1 table, header contains some description and then records, fields are delimited by 0 ASCII character, but it's not that simple as it se...

Folder comparions on Command line

Hello, I want to compare two folders on Windows(Vista, XP) which have large number of huge size files, which i need to compare. If i use beyond compare or such tool to compare the folders it is taking lot and lot of time if i do it manually. I need to add that folder comparison to batch file. So, On a Windows(XP, Vista), Is there any c...

Help with DOS script (grab specific data from a file)

Hey Guys, I need to grab just the md5 value from a file and make it a variable which I can use to compare to another md5 value. The problem is this file looks like this: a7393f772e34ca16a5854e80d9ec6704 md5 How do I open the file and only grab the actual number in DOS? (Not the "md5" And set it as a variable? Thanks! ...

How do I get the output of a Perl script into a file from the DOS prompt?

I'm generating a large XML document via a Perl script in a command window, however, currently it's printing the document to standard out. The Perl script modifiers do not have a switch to allow to write to a file, so I'm curious how to take an input string and write to a file via the base command shell. My current order of operations: ...

Automating old DOS application using Python

Is there a way to automate an old DOS application (16-bit, probably needs an emulator such as DOSBox) from Python (on Windows)? I would like to send keys and strings to the application, detect updates to the DOS "screen" and get the application output. It would be even better if the DOS application could run "hidden", i.e., not showing ...

Dos/Windows Batch help in setting a variable from command output

I need to run a simple find command and redirect the output to a variable in a Windows Batch File/DOS. I have tried this: set file=ls|find ".txt" echo %file% But it does not work. If I run this command it works without problems: set file=test.txt echo %file% So obviously my command output is not being set to my variable. Can any...