ILoveUBot 10 Posted May 20, 2016 Report Share Posted May 20, 2016 I have a python script that I would like to run from UBot. What should I put in the Advanced Shell plugin to make this work? I've tried: set(#path, "\\path to file\", "Global") plugin command("Advanced Shell.dll", "shell batch hidden", "c: cd \"{#path}\" python \"myScript.py\"", "Yes") but this doesn't work. Quote Link to post Share on other sites
pash 504 Posted May 21, 2016 Report Share Posted May 21, 2016 use this Quote Link to post Share on other sites
ILoveUBot 10 Posted May 22, 2016 Author Report Share Posted May 22, 2016 Thanks, but I don't think this will work. The script imports tweepy and reads from a text file so I don't think I can simply copy it into UBot. At the moment the script works when I double click it or if I run it manually from the cmd line but I want to run it automatically and I thought I could use the Advanced Shell plugin to execute it, but I'm not sure how to write the instructions in the Advanced Shell plugin to make it work successfully.--- Windows Task Scheduler:If I run the script manually from the command line, it works fine, but when I tried to set it up in Windows Task Scheduler it wasn't working properly. Finally I have worked out how to get it to run (this is running the script directly, without UBot): In Actions: Program/script: cmd Add arguments: /c python PathToScript.py Start in: C:\Users\Windows 8\Dropbox\Path to File Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.