Solved How do I compile a batch file to an existing .exe

frankweller

New member
Local time
2:36 PM
Messages
8
Location
San Diego
What i'm trying to do is every time I open a .zip, a specific sound and text file open as well, in their default applications. I'm using WINRAR as default for zip, VLC default for sound, and Notepad for txt. I think a batch file is how one would do this in Win7. I'm going over commands and making the files open, but i'm not sure how to compile to the winrar.exe or if thats the way to go about this task. Does anyone have a good idea on how to get this done.
 

My Computer My Computer

At a glance

Windows 7 32bit
OS
Windows 7 32bit
Yes, a bat file would be an option for that.
The START command will do that, it simply opens the file as if you would double-click it, opening any files with whatever program you have associated with them.
Put this in a bat file:
Code:
@ECHO OFF
START c:\zipfile.zip
START c:\sound.wav
START c:\textfile.txt

Save the file somewhere handy and run it. It should open all 3 things at once. There is no need for compilation or anything else, just run the bat instead of opening WinRAR or any file.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Thanks so much. It works perfect now.
 

My Computer My Computer

At a glance

Windows 7 32bit
OS
Windows 7 32bit
Back
Top