wscript command not running program
I have the following code:
'execute the Perl graph maker program
set PrgObj = server.CreateObject("WScript.Shell")
strWhere = PrgObj.CurrentDirectory
PrgObj.Run "c:\temp\gdtest.pl -i LaborData.csv -o test.jpg"
set PrgObj = nothing
strWhere gets set to c:\winnt\system32 as I am running Windows 2000. I just set this to see where the command prompt came up.
However, the program does not run. It is supposed to generate a jpg graph in the same directory. The program runs fine if I call directly from a command line.
From VBScript, I get no errors, but no jpg is created.
Can anyone see anything wrong from what I have here?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)