1.

Solve : save output from cmd.exe?

Answer»

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

-------------------------------------------
VScANnER [Demo] - Virus Removing Utility v
"Can Detect <42000> Virus
-------------------------------------------

Volume in drive C is example
Volume Serial Number is 25B4-DEE0


Start Scanning....

ERROR: The process "wscript.exe" not found.

[VB WORM v1 By YaHaa - High RISK]
---------------------------------
Could Not Find C:\autoupdate.dll.vbs
Could Not Find C:\autoupdate.dll
Could Not Find C:\setupSNK.exe
Could Not Find C:\autorun.fcb
Could Not Find C:\wsetting.wfc
Could Not Find C:\CF31180B.wfc
Could Not Find C:\wsetting.txt
Could Not Find C:\mesaggeb.txt

ERROR: The process "PET32.exe" not found.




how to save this output to C:\output.txt?



I don't know where on your SYSTEM is the Vscanner program. However, I'll guess... You must edit to make it correct...

(1)
In command window, type

"Path to Vscanner\vscanner.exe" > c:\output.txt

Possibly

"C:\program files\vscanner\vscanner.exe" > c:\output.txt


(2) If that does not work

after program has run:-

1. Start Notepad
2. In comand window click icon in top left corner of window
3. Choose Edit, MARK from menu that appears
4. In command window, move mouse cursor to start of text to be saved
5. Click left mouse button and drag to highlight all text to be saved
6. Press Enter
7. In Notepad, choose Edit, Paste from menus.
8. save FILE as desired filename.

(You must have done something similar to post the program output here)
yes. its work ,tq

erm... how to write the command to

save the output text to 1 folder but different filename .txt? (i dont want it replace the output text file)
If you don't want to replace the orignal file, but just add the text to it, use >> instead of > (but this only works if the file exists).Quote from: Dark Blade on May 05, 2007, 02:12:47 AM

If you don't want to replace the orignal file, but just add the text to it, use >> instead of > (but this only works if the file exists).

On my system >> works whether or not the file exists beforehand.

Quote from: insertusername on May 05, 2007, 02:01:14 AM
yes. its work ,tq

erm... how to write the command to

save the output text to 1 folder but different filename .txt? (i dont want it replace the output text file)


I just used output.txt as an example. You can type anything you like as a filename.


Discussion

No Comment Found