Page 1 of 1
Is there a way to log a DOS/CMD prompt?
Posted: Wed May 05, 2004 4:57 pm
by Top Wop
Title says all.
Any utility where I can log a DOS or a WinNT CMD window kind of what they have in Linux?
Posted: Wed May 05, 2004 10:56 pm
by fliptw
in NT, it has that, but only for the current session, and it works weird. try hitting the up and down keys.
I guess you could hit cygwin.com, and get yourself a bash shell.
Posted: Wed May 05, 2004 11:59 pm
by MD-2389
Just to add onto what flip said, you can set how many lines it'll keep in its buffer.
Posted: Thu May 06, 2004 5:37 pm
by Jeff250
For command-specific logging, you can just add " > [filename]" to your commands.
I.e.
dir > test.txt
will save the directory contents to text.txt.
Posted: Thu May 06, 2004 5:55 pm
by DigiJo
omg just wanted to post the same.
other options are possible,
dir >prn
prints the result if your printer supports dos printing, dir /p shows it page by page etc.
works for most other commands too.
Posted: Thu May 06, 2004 8:11 pm
by CDN_Merlin
dir /more does page by page also
Posted: Thu May 06, 2004 8:16 pm
by MD-2389
Merlin, don't ya mean "dir | more"?
Posted: Thu May 06, 2004 8:40 pm
by CDN_Merlin
yes, sorry it's the pipe symbol.
Posted: Mon May 10, 2004 5:50 am
by Delkian
There's no need to list all different command-line options for different commands, though, just list one: "foo /?" gives information on command-line parameters and stuff for foo.
Doesn't apply to pipes, of course, since they aren't parameters for commands.
Also, Win2k (and I guess XP and stuff) seems (to my little experience) to finally have filename completion by pressing tab.
Though I don't really see much use for the command line in Windows except for some pretty simple commands (ping, tracert, ipconfig...), but I guess it can be useful sometimes.