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


  1. Posts : 8
    Windows 7 32bit
       #1

    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 Computer


  2. Posts : 2,465
    Windows 7 Ultimate x64
       #2

    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


  3. Posts : 8
    Windows 7 32bit
    Thread Starter
       #3

    Thanks so much. It works perfect now.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 18:44.
Find Us