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

Community forum

Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
Offline Support  
#1 Posted : Wednesday, December 23, 2015 8:45:35 PM(UTC)

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 245

Thanks: 33 times
Was thanked: 14 time(s) in 13 post(s)
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.

Edited by user Wednesday, December 23, 2015 8:47:17 PM(UTC)  | Reason: Not specified


Please like VisualCron on facebook!
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top