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.


Evandre
2014-06-03T08:12:09Z
Need advice about a job I created to Execute a batch file.

In CMD prompt, I tested the batch file and it executes correctly, but in VisualCron it starts and completes immediately but the steps in the batch file is not actually done.

I created the job and in the Task I selected Execute Script, and on the Execute Script tab, I selected the batch file that I want to execute.

If there are steps to set up a job to execute a batch file. To make sure I did not do something wrong.

Thank you
Sponsor
Forum information
Support
2014-06-03T08:32:55Z
If you create a batch file and launch processes from there it will be "forked" into a separate thread and you loose the control of the child process - the result is that VisualCron exits when the batch file exits - not your child process.

You should only use Execute script option for vbscript/cscript.

You should use the Execute Task for other executables.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Evandre
2014-06-03T08:49:10Z
Thank you Henrik

I did try to use the 'Execute' Task, selecting the .exe in the Command field, and in the Arguments field I added the process it should execute.

Command: C:\Programs\Admin.exe
Argument: SYNCU

When I do it like this, the job result shows as running, but it never completes (success).

The other processes I did like this, did run and completed successfully.
Command: C:\Programs\Admin.exe
Argument: SYNCUP

It's just on the one process that it doesn't complete.

Under Server/[Localhost] - Running Jobs, the job shows, and the running time kept running until I ended the job.

Thank you for the help.
Support
2014-06-03T08:51:51Z
I guess something goes wrong in that process. In 99% of the cases it is related to permissions or the context that it runs in. By default it uses the SYSTEM account. Try creating a Credential, same user you are logged in as, and then select it in the Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Evandre
2014-06-03T10:58:14Z
On the Main Settings screen of the task, I left it as Background execution.

On the Execute screen, I selected the Credentials, as Administrator@<domainname> (local login + load profile), and when I set it up I entered the password.

When I run the job, it gives the message "Unhandled error when trying to start the process. Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced."

I am connected as Administrator on the Server, I set the credentials up as Administrator on the domain, with the password.

Thanks Henrik
Support
2014-06-03T14:25:11Z
Originally Posted by: Evandre 

On the Main Settings screen of the task, I left it as Background execution.

On the Execute screen, I selected the Credentials, as Administrator@<domainname> (local login + load profile), and when I set it up I entered the password.

When I run the job, it gives the message "Unhandled error when trying to start the process. Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced."

I am connected as Administrator on the Server, I set the credentials up as Administrator on the domain, with the password.

Thanks Henrik



So, there is something about the admin account you have defined in the Credential. Try creating a new blank administrator to see if that works better.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ravivisual
2018-07-09T15:09:17Z
Hi Team,

i created the bat file and i am trigger that bat file some times stop on 99% and i am manually killing Process and some times completed fraction seconds Like 0:00:04/3 seconds.

But in my result table nothing changes ?
i created like this : Bat file this is my commands --> "C:\Program Files (x86)\qxchange\qxchange.exe" "D:\ABC\ProfileDir\Customer.qxp"
and i am saving in d drive path some path .
In VC i call as in command: i call that bat file store path from d drive...
Throws an error only
Anyone can help me !!!
Try to give a basic idea about bat file trigger Process ?
ravivisual
2018-07-09T15:11:12Z
Originally Posted by: ravivisual 

i created the bat file and i am trigger that bat file some times stop on 99% and i am manually killing Process and some times completed fraction secondsLike0:00:04/3 seconds.

But in my result table nothing changes ?
i created like this : Bat filethis is my commands --&gt; "C:\Program Files (x86)\qxchange\qxchange.exe" "D:\ABC\ProfileDir\Customer.qxp"
and i am saving in d drive path some path .
InVC i call asin command: i call that bat file store path from d drive...
Throws an error only
Anyone can help me !!!
Try to give a basic idea about bat file trigger Process ?



Support
2018-07-10T11:47:13Z
I am closing this here as we already have an open discussion through email.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top