Home > Net >  error while running a bat file , i want to run it daily
error while running a bat file , i want to run it daily

Time:03-11

i created a bat file to execute my python script daily, however while im running the file im getting an error , im not an expert and dont have any experience in command prompt or creating executable file

below is my bat file details which i wrote on notepad and saved it as .bat

C:\Program Files\Python310\python.exe "C:\Users\RT00000\Desktop\python basics\web scraping\salceforce code\SalesforceAutomatedCode2.py"
pause

and im getting this error

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

CodePudding user response:

You need to use quote if there is a space in a path

"C:\Program Files\Python310\python.exe" "C:\Users\RT00000\Desktop\python basics\web scraping\salceforce code\SalesforceAutomatedCode2.py"

CodePudding user response:

try this

"C:\Program Files\Python310\python.exe" "C:\Users\RT00000\Desktop\python basics\web scraping\salceforce code\SalesforceAutomatedCode2.py"
  • Related