Jump to content

help runing programs from $progs


twixt

Recommended Posts

im trying to make a program run during my start.cmd. heres what i got

ECHO.

ECHO Installing Winrar 3.42

ECHO Please wait...

start /wait %systemdrive%\install\winrar\winrar.exe /s

COPY "%systemdrive%\install\winrar\program.exe" "%systemdrive%\Program Files\WinRAR"

COPY "%systemdrive%\install\winrar\Rarreg.key" "%systemdrive%\Program Files\WinRAR"

ECHO The winrar crack will now run just press ok! and then OK on the popup Then EXIT

PAUSE

start /wait %systemdrive%\program files\WinRAR\program.exe

but as you may know i get an error saying that c:/program is not found. the error is the the space in program files. i tried program%20files but nothing willl work please help

Link to comment
Share on other sites


You need to add quotes because of the space in "Program Files":

ECHO.

ECHO Installing Winrar 3.42

ECHO Please wait...

start /wait %systemdrive%\install\winrar\winrar.exe /s

COPY "%systemdrive%\install\winrar\patch.exe" "\"%systemdrive%\Program Files\WinRAR\""

COPY "%systemdrive%\install\winrar\Rarreg.key" "\"%systemdrive%\Program Files\WinRAR\""

ECHO The winrar crack will now run just press CRACK!  and then OK Then EXIT

PAUSE

start /wait "%systemdrive%\program files\WinRAR\Patch.exe"

(Not sure if the quotes on the last line also need the backslash. I don't think so.)

But running a crack? Tsk, tsk. :no:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...