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

Similar help and support threads
Thread Forum
Move files from original folder to existing folders - w batch file?
My files have a format of "ID_date_time.d7d Ex: 11111-5_2013_10_07_142149.d7d The ID is 1111-5 and was tested 10/7/2013 at 2:21:49 PM and the file extension is always .d7d The local files are automatically saved here by the program generating the data: C:\Local\Data I want them copied...
General Discussion
Batch File .bat to copy file from File Sharing & FTP Hosting
Hi all, Any idea how to write Batch File .bat to copy file from File Sharing & FTP Hosting to local directory. Current the File Sharing & FTP Hosting is SMARTFILE. I don't want to use WINSCP as the connector. Thanks
General Discussion
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
How to compile a text file or similar regarding files?.
I have so many films and music, how do i compile a list of them into a text file or some other format for catalogue use? , i hate using catalogue software.
General Discussion

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 15:25.
Twitter Facebook Google+