PDA

View Full Version : windows task scheduler and lich?



deadly
03-28-2017, 10:30 PM
Okay so I set up windows task scheduler to start lich E:\lich\lich\lich.rbw with the add argument of --Login charname

but when the system launches the script windows asks what file would you like to use? and it wont auto select ruby I have to do it by hand and when it does this it will not login the toon it just launches the lich login app and I have to manually select the toon I want to login.

Mogonis
03-28-2017, 10:43 PM
It should be more like:

"<Ruby Dir>\bin\rubyw.exe" "G:\Simu\lich\lich.rbw" --login charname

deadly
03-29-2017, 12:03 AM
8438

So what goes where lol...

Mogonis
03-29-2017, 12:21 AM
What I did was create a task named NoUACMogonis. In Task Scheduler, I checked the box to run with administrator privileges. Then the Program/script field needs to point to your rubyw.exe. In the arguments field, put the shortcut to lich.rbw and your character's name. Example: "C:\Simu\lich\lich.rbw" --login charname

Your desktop shortcut would then be something like:
C:\Windows\System32\schtasks.exe /run /TN "NoUACMogonis"

deadly
03-29-2017, 01:22 AM
Thanks got it working after pointing it to ruby.exe then adding the argument for the script thanks again.