If you want to run something and pipe the output to a text file, try using the the /c option with command.com
Example:
Shell("command.com /c dir >>c:\temp.txt")
This works for me in NT:
Shell("cmd.exe /c dir >>c:\temp.txt")
Hope that helps.




Reply With Quote