Are you trying to open this text file? If yes, then you can use something like this:
Call Shell("notepad temp.txt", vbNormalFocus
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
Printable View
Are you trying to open this text file? If yes, then you can use something like this:
Call Shell("notepad temp.txt", vbNormalFocus
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
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.
Thank you all for the responses, but it capture the text from command dir, and not the stdout put from command.com. Are there any way to capture the stdout from a file? Thank you in advance
hi, i've tried to pipe with vb, but it just load the program in dos window and close it. My format is
Call shell("c:\command > temp.txt")
can anyone help me out with this?