Dear Experts,
I would need to create a .bat file under Windows, which is able to:
1) run a .py so Python file and
2) also containing credentials as the Python code needs to connect to SQL and download data.
Could you please advise about the syntax how such .bat file should look like concretely?
Actually having the following try but it does not work (it executes the Python code but not asking for the password for the user):
@echo off
runas /netonly /user:smea\csehz
"C:\Python27\python.exe" "C:\Users\csehz\Desktop\HelloWorld.py"
pause
Open in new window
Thanks in advance,