Member • Aug 8, 2013
How to copy command line text to a file?
does anyone know about it??
Member • Aug 8, 2013
Administrator • Aug 8, 2013
Member • Aug 8, 2013
Member • Aug 8, 2013
yes, this works.. It is called re-directing and it works only with commands.. my question is not this. If something is already being displayed, that content should be moved to a text file. I think in linux we have script command to perform this kind of operation.. what about windows?After any command you execute, add this ">filename.txt". this will add the output of your command into thisfile. For ex:
tracert <a href="https://www.crazyengineers.com">CrazyEngineers</a> > trace.txt
This command will make a file trace.txt in your current working directory and copy all the output there instead of showing it on the screen.
Member • Aug 8, 2013
Vishal0203I think in linux we have script command to perform this kind of operation.. what about windows?
Member • Aug 9, 2013
rukawaWhat's the way to do this kind of operation in linux?
Member • Aug 27, 2013
Member • Aug 27, 2013
Most things that you can do in Linux, including <a href="https://en.wikipedia.org/wiki/Script_(Unix)" target="_blank" rel="nofollow noopener noreferrer">Script (Unix)</a>, you can do in the <a href="https://cygwin.com/" target="_blank" rel="nofollow noopener noreferrer">Cygwin</a> environment in Windows. That is, download setup-x86.exe or setup-x86_64.exe from Cygwin and execute it to install a Linux-like tools for Windows. I couldn't use Windows without it.Vishal0203I think in linux we have script command to perform this kind of operation.. what about windows?