it:ad:commandline:howto:record_the_output

IT:AD:CommandLine:HowTo:Record the Output

Capture output:

 
  //Pipe results to a file.
  sc query > results.txt
  //Pipe things to the screen, but in pages
  sc query | more
  //press Enter to move one line....
  //press Space to move down one page...
  Persisting Command Line results
  First -- remember that you can invoke any command line application from the Run, and persist the info on screen with the /K flag...eg:
  cmd /K ping skysigal.xact-solutions.com
   
  • /home/skysigal/public_html/data/pages/it/ad/commandline/howto/record_the_output.txt
  • Last modified: 2023/11/04 03:39
  • by 127.0.0.1