When I try to run a script using run.exe I get an error saying “unable to create process using python, followed by location of the script and access is denied.” in command prompt.
For example:
#! python3
print('Hello, world!')
with batch
@py.exe C:UsersXyvmsmu_code123hello2.py %*
@pause
gives
cmd screenshot
I tried reinstalling python, adding script location to paths in environment variables, and running cmd as administrator. Nothing worked, please help. Thank you!
New contributor
YWS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.