Capture output of Run Program> to file?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Capture output of Run Program> to file?

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 :(

User avatar
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
MJT Net Support
[email protected]

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 :D

I had to delete the space after the "/"

Run>cmd /c c:\msuptime\uptime.exe > c:\msuptime\uptime.txt

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts