S
S
sbh2015-08-04 08:09:38
VBScript
sbh, 2015-08-04 08:09:38

How to direct the output of a VBS script to a file?

In the vbs script, the ShellExecute method starts a third-party program.
It gives the result after running.
How to redirect result from console to text file?
The > method doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-08-04
@sbh

Output redirection is a shell functionality.
try this:
command = "cmd /CC:\Program Files\Program\Test.exe /info > C:\log.txt"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question