'error while running a bat file , i want to run it daily
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.
Solution 1:[1]
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"
Solution 2:[2]
try this
"C:\Program Files\Python310\python.exe" "C:\Users\RT00000\Desktop\python basics\web scraping\salceforce code\SalesforceAutomatedCode2.py"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | fiordiconio |
| Solution 2 |
