|
-
Dec 2nd, 1999, 01:11 AM
#1
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
-
Dec 2nd, 1999, 04:09 AM
#2
Member
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.
-
Dec 2nd, 1999, 08:25 AM
#3
Member
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
-
Dec 2nd, 1999, 12:42 PM
#4
Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|