F5F Stay Refreshed Software Operating Systems Initiate a program to open a file

Initiate a program to open a file

Initiate a program to open a file

B
bobslob333
Junior Member
3
03-23-2023, 05:26 AM
#1
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.
B
bobslob333
03-23-2023, 05:26 AM #1

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.

M
Metanium
Member
122
03-24-2023, 09:42 PM
#2
Right-click, select Open With, pick a different app, locate python.exe on your device. It will remain accessible in the right-click Open With menu forever.
M
Metanium
03-24-2023, 09:42 PM #2

Right-click, select Open With, pick a different app, locate python.exe on your device. It will remain accessible in the right-click Open With menu forever.

B
BoazPVP
Junior Member
37
04-02-2023, 09:58 PM
#3
Apologies for the confusion. Let me know if you need further clarification.
B
BoazPVP
04-02-2023, 09:58 PM #3

Apologies for the confusion. Let me know if you need further clarification.

A
Arelance
Member
67
04-02-2023, 10:35 PM
#4
This action requires modifying the standard setup.
A
Arelance
04-02-2023, 10:35 PM #4

This action requires modifying the standard setup.

S
Silvinha10
Senior Member
694
04-08-2023, 11:58 AM
#5
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.
S
Silvinha10
04-08-2023, 11:58 AM #5

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.