dos

How to enable the mouse in C++ program under DOS using DJGPP?

I've been using DJGPP for the first time recently and can't seem to enable mouse support. What's the best way? Thanks for any help. ...

Errorlevels set by DOS commands on Windows

I have a batch program that calls several child batch programs and they make entensive use of various DOS commands. In case of error, i would like to provide logging information about the error details to the user. This page details the various MS-DOS commands that can set an errorlevel http://support.microsoft.com/kb/81819 How do i kn...

Logical operators ("and", "or") in DOS batch

How would you implement logical operators in DOS Batch files? ...

Could 16bit .com executables call win32 APIs?

Any minimal example of 16bit .com display a window GUI using Win32 API on Windows? ...

how do I get a for loop to work on a single line comma delimited string with spaces

I've got an input to a batch file that contains a list of files (this is all one line and one of many inputs to the bat file): "\\Server\my directory name\subdir,\\Server\my directory name\subdir2,\\Server\my directory name\subdir3" I'd like to iterate this list and perform a command on each directory in the list. However, when I spec...

how to delete folder in dos console without list all contents deleted?

In windowsxp, I use "del /s /q myfolder" to delete a big folder. It will list all files and folders being deleted. is there a way to avoid that long display list? thanks, ...

Print command from C# application.

I want to write code that will print the Crystal Reports. But this command must go through DOS commands. How it is possible. (this is our client requirement) ...

DOS conventional memory layout

Conventional memory under DOS (fist 640kB) contains the operating system, drivers, and possibly one executing program. How is this memory laid out to avoid conflict between those programs? For example, is part of that address space reserved? ...

Taking an Assembly Course, Stuck in DOS!

I'm taking a course on Microprocessor Programming as part of my Electronic Engineering degree. Unfortunately, in the labs, we have to work in DOS using MASM. Now, I don't really find DOS a hindrance, but I just don't have it on a computer at home (and none of the computers that I have have floppy drives), so I am unable to practice writ...

how to set date to current date using dos batch file command.

how to set date to current date using dos batch file command. ...

How does edit.exe work?

There is an exe in system32 called edit.com . It is an old text editor. I'm wondering how they made a console app have a gui, and work with the mouse? Thanks ...

how do i copy files from 1 folder to another while excluding certain file types?

Hi I am using windows vista. i have a folder containing many files and subfolders. i need to copy the contents of that folder to another without including any files of the extension .txt. how do i do that? ...

How do I write text in different colours in DOS?

How do I write text in DOS, setting each character to a different colour? ...

Dos command to execute all sql script in a directory and subdirectories

Hi, I need a DOS command or a batch (.bat) file I can execute to run all the *.sql script in a directory and it's subdirectories. Any ideas? ...

How to search a hard drive for a directory name using DOS

Is there a way to find a file on the C: of a computer , using a DOS command, without having to CD to the root of the C: drive? I would like to do it using the DIR and the FINDSTR command only. Ultimately, my goal is to search for a file and then store the parent directory name in a ENV variable without changing directories and hopefu...

Recursive directory listing in dos

How do we achieve recursive directory listing in DOS? I'm looking for a command or a script in DOS which can give me the recursive directory listing similar to ls -R command in unix. ...

Pointer issue in C - what am I doing wrong here?

For a bit of background, I'm writing a meter reading application in C for a small 16-bit handheld computer that runs a proprietary version of DOS. I have a screen that displays meter information and prompts the user to type in a reading. When the user presses the enter key on the unit, the following code will execute: /* ... * beginn...

run c programmes from cmd / dos in xp

Hi , this maybe a noobish question so sorry, is it possible to run c programmes from cmd? I am in the process of creating a programme that takes 3 command line arguments, a string seperator and 2 file names and i have conditions such as if more or less command line items are passed then print an error etc i cannot test this from dev-c...

Amazon EC2 Load Balancer: Defending against DoS attack?

We usually blacklist IPs address with iptables. But in Amazon EC2, if a connection goes through the Elastic Load Balancer, the remote address will be replaced by the load balancer's address, rendering iptables useless. In the case for HTTP, apparently the only way to find out the real remote address is to look at the HTTP header HTTP_X_F...

what could cause PUSHD to fail?

I've got a great big script that is entirely reliant on PUSHD. However suddenly when I type pushd \\server1\dir1 I'm getting: C:\Documents and Settings\userNameHere>pushd \\server1\dir1 ' ' CMD does not support UNC paths as current directories. OK, I'm aware that CMD doesn't support UNC paths. That's why I'm using PUSHD. When I search...