Jump to content

Run Autoit scripts from a batch file using psexec


wan
 Share

Recommended Posts

I have a script that run hourly through Task Scheduler. The problem is when I want to run it even when user is not login and have tick/untick all required radio box eg, Run with high privilege but it shows the script running in Task Manager but no GUI (My script need to run interactively) . So, I discovered to run the script using Pstool. But the script stop running and stuck when the process is to export the excel file into local directory.

This is my batch file :

C:\PSTools\PsExec.exe psexec -i -s  "C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "E:\TMGAD0001\TMGAD0001 - Backup.au3"   

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...