How do I compile a batch file to an existing .exe Solved - Windows 7 Help Forums
Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do I compile a batch file to an existing .exe

21 Apr 2013   #1

Windows 7 32bit
How do I compile a batch file to an existing .exe

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 System SpecsSystem Spec
21 Apr 2013   #2

Windows 7 Ultimate x64

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:
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 System SpecsSystem Spec
22 Apr 2013   #3

Windows 7 32bit

Thanks so much. It works perfect now.
My System SpecsSystem Spec

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

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:35.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App