Jump to content

Recommended Posts

Posted

Hi,

Is it normal that All my applications in my Install.cmd Batch file are installed except "$OEM$\$1\Install\MSN Messenger" and "$OEM$\$1\Install\Crap Cleaner". The data itself are copied to my hardrive but when the batch file run it give me an error: "Cannot find C:\Install\Crap" I suspect the space in the folder structure. What do u think about it ?

CLS
@echo off
TITLE Installation des applications

ECHO.
ECHO 1 sur 7
ECHO Installation de Crap Cleaner
start /wait %systemdrive%\Install\Crap Cleaner\ccsetup116.exe /S

ECHO.
ECHO 2 sur 7
ECHO Installation de MSN Messenger
start /wait %systemdrive%\Install\MSN Messenger\MsnMsgs.msi /QB

ECHO.
ECHO 3 sur 7
ECHO Installation de  Adobe Reader 6
start /wait %systemdrive%\Install\Adobe\AdbeRdr60_enu.exe -p"-s /v\"/qn\""


Posted

Yes

you found the error yourself ;)

The best is not to use spaces in your directory names.

Either no gap or an underline as in the example below.

ECHO.
ECHO 1 sur 7
ECHO Installation de Crap Cleaner
start /wait %systemdrive%\Install\CrapCleaner\ccsetup116.exe /S

ECHO.
ECHO 2 sur 7
ECHO Installation de MSN Messenger
start /wait %systemdrive%\Install\MSN_Messenger\MsnMsgs.msi /QB

or you can also use quotes

ECHO.
ECHO 1 sur 7
ECHO Installation de Crap Cleaner
start /wait "%systemdrive%\Install\Crap Cleaner\ccsetup116.exe" /S

but this would get harder to sort if you have lots of quotes in your command line

as below. I dont know if just adding quotes to the beginning and end would work.

ECHO.
ECHO 3 sur 7
ECHO Installation de  Adobe Reader 6
start /wait "%systemdrive%\Install\Adobe Reader\AdbeRdr60_enu.exe" -p"-s /v\"/qn\""

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...