DOS Commands

what exactly do you want to know? 10 years ago I was quite used to it and I have an old book somewhere.
 
OK GenghisK here's something I used to want to work...

copy con mybat.bat
echo
prompt $T$D
any DOS command >> mybat.txt
^C


anyway I want the prompt of date and time to be written to the txt file.
 
If you're in pure DOS (i.e. NOT console under Win9x/2k), like Ms DOS 6.0 you can always try this:

@echo (ascii code of escape) | time | find "is" >toto.txt
@echo (ascii code of escape) | date | find "is" >>toto.txt

I explain. Under DOS edit, to type the ascii code of escape you must press ctrl+p then press escape. you'll see a "<-" back arrow character, it's the escape character. The piped find will normally eliminate the "the date is", so you only have the date and the time remaining.
 
Nice using ASCII idea. I played around with that a little but couldn't remember the escape seq. was not the same as listed in my book and I found it by accident once.

I will try it tonight-
 
the only ones you want to be using are:
"Cd.." "Cd\" "Dir" "Dir/p" and "D:" or "C:"

That also brings me back to childhood memories :) -- (with a 286)
 
Back
Top Bottom