Create run_custom_app.py
Browse files- run_custom_app.py +10 -0
run_custom_app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
# Example for Google Chrome using its exact file path
|
| 4 |
+
chrome_path = r"C:\Program Files\Google\Chrome\Application\chrome.exe"
|
| 5 |
+
|
| 6 |
+
try:
|
| 7 |
+
subprocess.Popen(chrome_path)
|
| 8 |
+
print("✅ Custom application opened.")
|
| 9 |
+
except FileNotFoundError:
|
| 10 |
+
print("❌ The file path is incorrect. Please verify where the app is installed.")
|