LCote Posted April 24, 2018 Share Posted April 24, 2018 I have compiled a script written in Auto IT which will run a function in my ERP system. When I run the script in AutoIT it runs. I compiled the script and ran it. It runs. I wrote a powershell which will start the process. If I manually run that, it runs. It is one line at the moment: ShellExecute("G:\Infor\Visual\Visual MFG\VMTRVRPT.EXE","-u <user> -p <password> -d <databasename>") As soon as I try to schedule the task (even just two minutes in the future and leave myself logged in and watching), it fails....although the scheduled task shows that it has completed. I have been all over these forums trying everything to get this to run. What can be wrong? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 24, 2018 Moderators Share Posted April 24, 2018 What credentials are you using for the scheduled task? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
LCote Posted April 24, 2018 Author Share Posted April 24, 2018 I am using the same credentials that I am logged in with. I checked that carefully! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 24, 2018 Moderators Share Posted April 24, 2018 And you have the task in interactive mode, and you have confirmed after the task runs that the process is not running (not just that you do not see the window)? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
LCote Posted April 25, 2018 Author Share Posted April 25, 2018 Aha! I had missed the interactive mode! Thank YOU! I can't believe I have wasted so much time on that!!!! Link to comment Share on other sites More sharing options...
Zedna Posted April 26, 2018 Share Posted April 26, 2018 Also look at this related wiki: https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now