Initiate a program to open a file
Initiate a program to open a file
Normally I wanna open python scripts with IDLE. But there is one script that I wanna open with python.exe. I wanna just left click and have it opened with python.exe. So I don't want to change the default program. I couldnt find how to do it online. I think you might know how I can do this.
Set up a batch file with the following commands:
@echo off
python.exe "C:\path\to\python\script.py" pause
REM or save as an executable
This will run the Python script and display output until you press Pause.