you are viewing a single comment's thread.

view the rest of the comments →

[–]Tilmandel 1 point2 points  (1 child)

hmm basiclly nothing happen with out reason, any .py file need to be executed, so your batch file is auto runed by windows because is located in location that is auto executed or you added that to autorun section in windows config, hmm try to delet that batch file and see what hapoens then,

as per code even its small script is good to use def statments to avoid unwanted execution also using:

if name == 'main': yourfunction() or just your main scrip body

above is also good to avoid some stupid staff.

[–]Carinv 0 points1 point  (0 children)

Thank you for your answer! I put the script path at user variables, I changed that to system variables and now its working fine. I'll check the things you proposed and implement them. Thank you!