Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Call error

UFC_PragmaUFC_Pragma Member Posts: 1
This is my program stopping at c:Program the space in program files is stopping the call. Can anyone advice on how to get over this?

The Program

:: Pro E Flushing System
::
:: By Evision
@ECHO OFF
ECHO.
ECHO.
ECHO ----------------------------------
ECHO =--------------------------------=
ECHO.
ECHO Evison Pro E Flushing System
ECHO.
ECHO ----------------------------------
ECHO =--------------------------------=
ECHO.
ECHO.
ECHO Press 1) Flush Pro E Server
ECHO Press 2) Shutdown Pro E Server
ECHO Press 3) Retart Pro E Server
ECHO Press 4) Check Server Status
ECHO Press 5) EXIT
ECHO.
ECHO.
set choice=
set /p choice=Type the option you requier.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto Flush
if '%choice%'=='2' goto Shutdown
if '%choice%'=='3' goto Retart
if '%choice%'=='4' goto Check
if '%choice%1=='5' goto Exit

ECHO "%choice%" is not valid please try again
ECHO.
goto start

:Flush
Call C:Program Filesflexlminptcflush.bat

Comments

  • IDKIDK Member Posts: 1,784
    : This is my program stopping at c:Program the space in program files is stopping the call. Can anyone advice on how to get over this?
    :
    : The Program
    :
    : :: Pro E Flushing System
    : ::
    : :: By Evision
    : @ECHO OFF
    : ECHO.
    : ECHO.
    : ECHO ----------------------------------
    : ECHO =--------------------------------=
    : ECHO.
    : ECHO Evison Pro E Flushing System
    : ECHO.
    : ECHO ----------------------------------
    : ECHO =--------------------------------=
    : ECHO.
    : ECHO.
    : ECHO Press 1) Flush Pro E Server
    : ECHO Press 2) Shutdown Pro E Server
    : ECHO Press 3) Retart Pro E Server
    : ECHO Press 4) Check Server Status
    : ECHO Press 5) EXIT
    : ECHO.
    : ECHO.
    : set choice=
    : set /p choice=Type the option you requier.
    : if not '%choice%'=='' set choice=%choice:~0,1%
    : if '%choice%'=='1' goto Flush
    : if '%choice%'=='2' goto Shutdown
    : if '%choice%'=='3' goto Retart
    : if '%choice%'=='4' goto Check
    : if '%choice%1=='5' goto Exit
    :
    : ECHO "%choice%" is not valid please try again
    : ECHO.
    : goto start
    :
    : :Flush
    : Call C:Program Filesflexlminptcflush.bat
    :
    Put it between two " like this:
    Call "C:Program Filesflexlminptcflush.bat"
    or make it an old 8.3 dos format, like this:
    Call C:Program~1flexlminptcflush.bat
Sign In or Register to comment.