Linux Script Command in Microsoft?
Monday, June 27th, 2011 at
14:49
Hey guys,
I’m finishing a program, and the professor wants us to create a script file which basically records everything the command prompt prints to the screen, and puts it all into a text file. In linux, you can start this with the command:
script scriptfilename
Is there any MS DOS equivelant? thanks!
Tagged with: command script • hey guys • Linux • ms dos • prints • script file
Filed under: Microsoft
Like this post? Subscribe to my RSS feed and get loads more!
try a redirect command >
i.e.
dir *.* > dirlist.txt
Yes there is, You can write a command line where you name the file and output to it. e.g.
C:\> dir >textfile.txt
which will output the contents of the directory (ouput of the dir command) into the file textfile.txt .