Hints, tips and tricks for newbies
Moderators: JRL, Dorian (MJT support)
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Tue Feb 22, 2005 4:25 pm
Trying to replace some old .bat's. How can I direct the output of a program to a file? Run Program doesn't like the second ">" so the equivalent of a batch command, e.g.
Run Program>c:\msuptime\uptime.exe>c:\msuptime\uptime.txt
doesn't work

-
support
- Automation Wizard
- Posts: 1450
- Joined: Sat Oct 19, 2002 4:38 pm
- Location: London
-
Contact:
Post
by support » Tue Feb 22, 2005 4:33 pm
Try this:
Run>cmd / c c:\msuptime\uptime.exe > c:\msuptime\uptime.txt
If using Win9x replace cmd with command.com
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Tue Feb 22, 2005 5:37 pm
support wrote:Try this:
Run>cmd / c c:\msuptime\uptime.exe > c:\msuptime\uptime.txt
If using Win9x replace cmd with command.com
Thanks
I had to delete the space after the "/"
Run>cmd /c c:\msuptime\uptime.exe > c:\msuptime\uptime.txt