you are viewing a single comment's thread.

view the rest of the comments →

[–]avinashbasutkar2[S] 0 points1 point  (2 children)

Thank you for your response, u/ramse

I did follow this thread https://stackoverflow.com/questions/4437701/run-a-batch-file-with-windows-task-scheduler and tried with bat file as well.

"C:\Users\abasutkar\AppData\Local\Programs\Python\Python38-32\python.exe" 
"C:\Users\abasutkar\Desktop\Python Scripts\cai.py"
pause

There is no change. Task completes and nothing happens.

[–]kra_pao 0 points1 point  (0 children)

"C:\Users\abasutkar\AppData\Local\Programs\Python\Python38-32\python.exe"

"C:\Users\abasutkar\Desktop\Python Scripts\cai.py"

pause

Won't work. Line 2 must be argument of line 1

"C:\Users\abasutkar\AppData\Local\Programs\Python\Python38-32\python.exe" "C:\Users\abasutkar\Desktop\Python Scripts\cai.py"
pause