Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 686

Redirect exe file output to text file

$
0
0
Hi,

I am just trying to execute the below command in command prompt and it works perfect

Code:

"""C:\Program Files\ccc""" -C server -t 13 -l -R -s 03/04/2013 /D/ > E:\m_bkup\mk.txt
but when i try to execute the script i am getting compilation error that expected end of statement.

Code:

Option explicit
Dim WshShell,objExec
 
Set WshShell = CreateObject("Wscript.Shell")
 
WshShell.Exec """C:\Program Files\ccc""" -C server -t 13 -l -R -s 03/04/2013 /D/ > E:\m_bkup\mk.txt

I have tried with both Wshshell.run and wshshell.exec, but no luck, please help me resolving the issue

Viewing all articles
Browse latest Browse all 686

Latest Images

Trending Articles



Latest Images