I know on telnet when i script i do this:
script *FilenameOfScript*
cat *FilenameIWantToScript*
But i don't understand how i do it in DOS...
Anyone know how to?
I know on telnet when i script i do this:
script *FilenameOfScript*
cat *FilenameIWantToScript*
But i don't understand how i do it in DOS...
Anyone know how to?
what are those two telnet lines supposed to do?
script records all terminal ouput to a file until ctrl^D or the exit command
I don't know a DOS equivalent.
you can use
as a cat equivalentCode:type *FilenameIWantToScript*
Last edited by spydoor; 11-14-2005 at 09:16 AM.
If I understand what you're saying, the DOS equivalent would be to use "copy con". For example, if you were to type the following at the prompt:
The above creates a file called test.bat in the root that contains the two echo commands. The ^Z is the control-Z character and ends the capture of the text (you don't actually type in ^Z). I think "con" is supposed to mean "console".Code:C:\>copy con test.bat echo Hello World echo How are you? ^Z
test.bat contents:
Code:echo Hello World echo How are you?
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens