Simple DOS redirection

ajetrumpet

Banned
Local time
Today, 04:58
Joined
Jun 22, 2007
Messages
5,638
all,

I need some help on how to write a command to the DOS window using the reverse redirection symbol ( < ).

I have searched the internet for hours on trying to get some information on how to do this, but the only i've found is how to redirect OUTPUT to a text file. I need the opposite. I want to redirect the contents of a text file to the command line so I can execute it. Any ideas? Thanks!
 
Ive seen this done in vb6 before... where it sent a command and ran it. had to do with shell command and some sendkeys.. I would think it could be done with a readfile....

You trying to do this strictly in dos?
 
If your input file (a text file) is simply a list of DOS commands to be executed, simply have your text file have a file extension of ".bat", and now it's a batch file for DOS. Each command is on its separate line and will be executed in order it is entered in the batch file.
 

Users who are viewing this thread

Back
Top Bottom