Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
2012-04-10T16:41:47Z
I have a script that is executed with an additional parameter that's passed in.

Example:
c:\script.php abc

Is the correct syntax to use in the arguments field like this? With the parameter outside of the quotes?

"c:\script.php" abc

Thank you,

Bob L.
Sponsor
Forum information
Support
2012-04-10T16:52:05Z
You should have the full path to php.exe in command and the full path to script in argument field.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2012-04-10T16:56:20Z
I have that already. But where exactly is the parameter placed?

Are you saying it should look like this?

Command:
C:\php\php.exe

Arguments:
"e:\interserv\action\filetransfer\employeeweb\batch\email_renewal_letters.php noticeone"

When I try it this way the task fails saying could not open file.
Support
2012-04-10T17:41:09Z
Example:

Command: "c:\php\php.exe"
Arguments: "c:\php\scripts\myscript.php" -arg1 -arg2

You should put arguments after php script.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top