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
frankweller

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
Alejandro85

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

Windows 7 32bit
 
 

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


Reply

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




Thread Tools





Similar help and support threads
Thread Forum
I need a batch file to open a random file within a certain folder/path
I want a batch to select and open a random link file in a folder i have. All the links are music videos I like to listen to, and I kind of want to just have an option for 'surprise me!'. I can change the file names if I have to, and I have a basic batch file ability. I know the simple commands,...
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
Replace default .pst file with existing .pst file
I upgraded from Vista Business to Seven Home Premium. Used Office 2007 in Vista and using it in Seven. In Vista, my .pst file was C:\Outlook\MyOutlookFolder.pst. Added it to Outlook using Data File Management, but none of my calendar entries appeared (my inbox and all my other folders are OK). When...
Microsoft Office
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
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
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 17:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App