Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Shortcut open file in different program?
New Posts  All Forums:Forum Nav:

Shortcut open file in different program?

post #1 of 3
Thread Starter 
Okay, I made a batch (.BAT) file that I use for testing stuff, and I want to have a shortcut on my desktop that will open the batch file in Notepad, and I'll have another shortcut that just simply runs the batch file normally.

Is there a way to make one of those shortcuts open the .bat file in Notepad, for quick and easy editing?

Thanks for any help!

[EDIT] Never mind, I got it!

You just put the directory and filename of the .exe to the program you want, then the file you want (as in normal shortcuts) like this:

"C:\\Program Files\\Notepad++\
otepad++.exe" "C:\\WINDOWS\\system32\est.bat"
Pumpmaster Flex
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700k Gigabyte GA-Z170X-UD5 ASUS ROG STRIX GTX 1080 TI 11GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Ducky One TKL Side Print PBT 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
AudioOtherOtherOther
Schiit Magni 2 + Modi 2 Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
Other
Sennheiser HD 650 
  hide details  
Reply
Pumpmaster Flex
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700k Gigabyte GA-Z170X-UD5 ASUS ROG STRIX GTX 1080 TI 11GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Ducky One TKL Side Print PBT 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
AudioOtherOtherOther
Schiit Magni 2 + Modi 2 Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
Other
Sennheiser HD 650 
  hide details  
Reply
post #2 of 3
you know it wasnt needed to do all that.. with the bat file you can just right click on it and select edit.. or just double click it to execute it.. there is also the right click and goto open with ... and select notepad.. this way you dont have to clutter up the desktop with icons
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel I7 2600k Asus p8p67-Deluxe Zotac GTX780 6GB OC G-skill Ripjaws 1866 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 EVO 250 Samsung EVO 120 Western Digital 1TB Black Lite On 20x DVD RW 
CoolingOSOSOS
XSPC RayStorm + 360Extreme Rad Arch Linux Windows 8.1 x64 WindowsRE 
MonitorKeyboardPowerCase
Asus PB278Q ThermalTake Meka G1 Evga SuperNova 1000 P2 Xigmatek Elysium 
MouseMouse PadAudio
Logitec G500 Gaming Mouse Ultra Pad Fiio E-17 + ATH-M50 
  hide details  
Reply
post #3 of 3
Thread Starter 
Quote:
Originally Posted by Trippen Out View Post
you know it wasnt needed to do all that.. with the bat file you can just right click on it and select edit.. or just double click it to execute it.. there is also the right click and goto open with ... and select notepad.. this way you dont have to clutter up the desktop with icons
That was the reason for creating the icon... I didn't want to right click.... move... wait for the menu to slide out... then click again lol
Pumpmaster Flex
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700k Gigabyte GA-Z170X-UD5 ASUS ROG STRIX GTX 1080 TI 11GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Ducky One TKL Side Print PBT 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
AudioOtherOtherOther
Schiit Magni 2 + Modi 2 Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
Other
Sennheiser HD 650 
  hide details  
Reply
Pumpmaster Flex
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700k Gigabyte GA-Z170X-UD5 ASUS ROG STRIX GTX 1080 TI 11GB G.SKILL Ripjaws V Series 16GB DDR4 3200 
Hard DriveCoolingOSKeyboard
Samsung 850 EVO 500 GB Cryorig H7 Windows 10 Pro Ducky One TKL Side Print PBT 
PowerCaseMouseMouse Pad
EVGA SuperNOVA 850w Fractal Design Define R5 Black Silent Logitech G502 Proteus Core SteelSeries QcK Heavy 
AudioOtherOtherOther
Schiit Magni 2 + Modi 2 Sennheiser HD 598 Special Edition Over-Ear Head... Audio-Technica ATH-M50 Headphones AntLion ModMic 
Other
Sennheiser HD 650 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Shortcut open file in different program?