1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Self extracting

Discussion in 'All Other Software' started by LorenzoK, Jul 27, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. LorenzoK

    LorenzoK Thread Starter

    Joined:
    Jul 20, 2008
    Messages:
    4
    Hello.

    This is the first time I've been toying with things of this nature, and it began as messing around with some friends, so please bear with any outlandish noobness.


    I'm trying to create an .exe (using iexpress.exe) that will run a .bat.
    Inside of the .exe will be two .bats: the command itself and the one that both extracts executes the command
    The first .bat to be run will in turn extract and execute the command to a default location
    The second .bat will be the command that is extracted

    I have the concept down, and from what I've read, it's possible to do this (I could be wrong, and suspect I am),

    What I'm curious about is the actual text that must be input at the Command Prompt to extract the file from the .exe to another location.

    I have the command and the execution of the command written down. My problem is the middle ground; getting the command to a location from where it can be run.

    TL;DR: How does I make a cmd prompt line to extract/move a file to a certain location?
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Posted via Mobile Device
    what kind of file are you extracting. could you give us a better example of what you are trying to do.
     
  3. LorenzoK

    LorenzoK Thread Starter

    Joined:
    Jul 20, 2008
    Messages:
    4
    Sure thing. My friend hates death metal music with a passion (as do I). Just to mess around with him, I was thinking something along the lines of him clicking the .exe, it extracting the song (some Lamb of God tune, i'll decide on the most hardcore one later) file to a default location, then running it from there. Basically forcing him to listen to a song, even for a few seconds.
     
  4. JPCompHelp

    JPCompHelp

    Joined:
    Jul 27, 2009
    Messages:
    311
    1. Get an audio file you want to play.
    2. Start IExpress and start creating a new package.
    3. Add the audio file to the files and click Next.
    4. In the "Install program" field, type in "C:\WINDOWS\system32\mplay32.exe /play <NAME OF YOUR AUDIO FILE HERE>.<extension>"

    It's best to make sure that the file can be played in the classic player.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/846980

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice