Jump to content
UBot Underground

Advanced Shell Plugin - How Do I Run Python Script?


Recommended Posts

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.
 

Link to post
Share on other sites

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
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...