How to create scheduled task of a batch file (Windows)?

1

I have a batch file containing something like this

C:\Python27\Scripts\twistd.py -n -y C:\Program Files (x86)\POS\atidps.py pause

How to create scheduled task to run at startup (to all user including non admin), with the command prompt windows always appear, as like when I run the batch script. So it should gonna be like this.

I'm new in Windows system administration things, so any detailed answer will be appreciated, thank you.

adadion

Posted 2016-07-30T17:56:17.477

Reputation: 123

@w32sh Great! Don't have idea why he posted it on SO, haha. It should be migrated here. Thank you! – adadion – 2016-07-30T18:04:38.930

1

See here for more details on this type of a task for common issues: http://superuser.com/questions/1005192/problems-scheduling-a-task-on-windows7/1005216#1005216 You want a trigger to use At Logon for Any User or At Startup it sounds to me. If you want it to show at logon then do the at logon otherwise at startup it'll run when Windows starts up.

– Pimp Juice IT – 2016-07-30T18:12:30.610

@PIMP_JUICE_IT Superb! Actually I'm just want to post question about NET USE printer share permission issue. But your answer there seems what I was gonna look for. Thank you! – adadion – 2016-07-30T18:30:08.240

Answers

0

I've found better solution. Make twisted application as Windows Service using NSSM.

More detailed 'How To' can be found from this blog post part 2. There are 3 part articles. It is quite useful, rather than make scheduled task.

adadion

Posted 2016-07-30T17:56:17.477

Reputation: 123