Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RUNNING A EXE PROGRAM, GETTING AN OUTPUT TO A FILE.....

Status
Not open for further replies.

rferrer61

IS-IT--Management
Jul 5, 2001
8
US
HI THERE,
I AM TRYING TO RUN A PROGRAM WITH SHELL AND GET THE OUTPUT TO A TXT FILE BUT I AM GETTING AN ERROR.
ANY IDEAS???

I AM USING:

Private Sub cmdgetuser_Click()

Call ShellWait("j:\sample.exe > c:\file.txt")

End Sub


IT RUNS WITHOUT "> C:FILE.TXT" . ANY HELP WILL BE REALLY APPRECIATED.
THANKS,
RF
 
Hi,

Try it this way:

Winnt/2000/XP
--------------------------
Call ShellWait("cmd.exe /c j:\sample.exe > c:\file.txt")


Win9X
--------------------------
Call ShellWait("command.com /c j:\sample.exe > c:\file.txt")

Hope this helps,
Veneficus
 
Thanks a lot Veneficus!
It really helped me out. It's hard being a beginner! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top