My Windows program/command only runs outside VisualCron, why? - VisualCron - Forum

Community forum

Support
2015-12-23T19:45:35Z
Perhaps your program/Job is running when you double click it but not in VisualCron. Remember that commands in VisualCron are executed under the SYSTEM account, by default, which uses another environment than the ordinary user. When you double click on your command you execute it as the logged in user.

To produce the same result in VisualCron you need to connect a user to that Task. A user consists of a username, password and a domain/computer name - this is called a credential in VisualCron. Credentials can be centrally managed in VisualCron. You can add new credentials by choosing "Manage credentials" from the main menu. Be sure to have the right casing as it is case sensitive. Enter the username, password and computer name that you normally use when you execute this command or create a new account in the Control Panel. Please also make sure that you have 'Local Login and Load Profile' options checked in the Credential you are using in VisualCron.

To connect the added credential you edit your Task and select the credential (in the select box) in the add Task window. Try to execute again. Please contact support if you need further assistance.

Other problems that may appear:
You can't for example write "ftp.exe" as command line if you don't setup the environment for that.
Solution 1: point directly to the file, like C:\WINDOWS\system32\ftp.exe in the command line.
Solution 2: use C:\WINDOWS\system32\ as Working Directory and ftp.exe in the command line.
Solution 3: activate Use shell execute in the Task Execute settings. However, when using this option you can't redirect output.
Solution 1 or 2 are the recommended solutions.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top