donald7777 Posted September 9, 2009 Share Posted September 9, 2009 hello everyone, I am just finishing my multiboot disk for different computers around my home. when i get this error when it install my software.The system cannot find the batch label specified - XPHO 1 file<s> copiedhere is my install.cmdcmdow @ /HID@echo offFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\SOFTWARE SET CDROM=%%i:@echo offREM next line makes sure the *.TAG extension is identifiedsetlocal enableextensionsREM checks for the XPHO.tag file and go to the corresponding section:if exist %SystemDrive%\XPHO.TAG call :XPHOREM checks for the XPHR.tag and go to the corresponding section:if exist %SystemDrive%\XPHR.TAG call :XPHRREM checks for the XPHU.tag and go to the corresponding section:if exist %SystemDrive%\XPHU.TAG call :XPHUREM checks for the XPPC.tag and go to the corresponding section:if exist %SystemDrive%\XPPC.TAG call :XPPCREM checks for the XPPO.tag and go to the corresponding section:if exist %SystemDrive%\XPPO.TAG call :XPPOREM checks for the XPPR.tag and go to the corresponding section:if exist %SystemDrive%\XPPR.TAG call :XPPRREM checks for the XPPU.tag and go to the corresponding section:if exist %SystemDrive%\XPPU.TAG call :XPPUREM checks for the XHOD.tag and go to the corresponding section:if exist %SystemDrive%\XHOD.TAG call :XHODREM checks for the XHRD.tag and go to the corresponding section:if exist %SystemDrive%\XHRD.TAG call :XHRDREM checks for the XHUD.tag and go to the corresponding section:if exist %SystemDrive%\XHUD.TAG call :XHUDREM checks for the XPCD.tag and go to the corresponding section:if exist %SystemDrive%\XPCD.TAG call :XPCDREM checks for the XPOD.tag and go to the corresponding section:if exist %SystemDrive%\XPOD.TAG call :XPODREM checks for the XPRD.tag and go to the corresponding section:if exist %SystemDrive%\XPRD.TAG call :XPRDREM checks for the XPUD.tag and go to the corresponding section:if exist %SystemDrive%\XPUD.TAG call :XPUDREM Endgoto :end:XPHOREM Here we'll add the SOFTWARE to install to the XP Home OEM version. REM "%~dp0" refers to the full path the Install.cmd is in, so you don't have to worry about drive lettersREM End this sectionREM end of this section :goto :end:XPHRREM Here we'll add the SOFTWARE to install to the XP Home Retail version. REM End this sectionREM end of this section :goto :end:XPHUREM Here we'll add the SOFTWARE to install to the XP Home Upgrade version. REM End this sectionREM end of this section :goto :end:XPPCREM Here we'll add the SOFTWARE to install to the XP Professional Corporate version. REM End this sectionREM end of this section :goto :end:XPPOREM Here we'll add the SOFTWARE to install to the XP Professional OEM version. REM End this sectionREM end of this section :goto :end:XPPRREM Here we'll add the SOFTWARE to install to the XP Professional Retail version. REM End this sectionREM end of this section :goto :end:XPPUREM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version. REM End this sectionREM end of this section :goto :end:XHODREM Here we'll add the SOFTWARE to install to the XP Home OEM version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XHRDREM Here we'll add the SOFTWARE to install to the XP Home Retail version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XHUDREM Here we'll add the SOFTWARE to install to the XP Home Upgrade version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XPCDREM Here we'll add the SOFTWARE to install to the XP Professional Corporate version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XPODREM Here we'll add the SOFTWARE to install to the XP Professional OEM version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XPRDREM Here we'll add the SOFTWARE to install to the XP Professional Retail version. %SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :goto :end:XPUDREM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.%SystemDrive%\DPsFnshr.exe REM End this sectionREM end of this section :goto :end:endREM Here we'll add the options for every OS.%CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q%CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn%CDROM%\SOFTWARE\OEMLOGO.CMD%CDROM%\SOFTWARE\REGISTRY.CMD%CDROM%\SOFTWARE\CLEANUP.CMDdel /f /q %SystemDrive%\*.TAGexitplease help Link to comment Share on other sites More sharing options...
Yzöwl Posted September 9, 2009 Share Posted September 9, 2009 I would suggest you start by replacing your first 39 lines with these!@ECHO OFF&SETLOCAL ENABLEEXTENSIONSFOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTIONFOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#GOTO :EOFThen I'd also suggest you change the executable lines at the bottom to:START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /qSTART /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qnCALL %CDROM%\SOFTWARE\OEMLOGO.CMDCALL %CDROM%\SOFTWARE\REGISTRY.CMDCALL %CDROM%\SOFTWARE\CLEANUP.CMD Link to comment Share on other sites More sharing options...
donald7777 Posted September 9, 2009 Author Share Posted September 9, 2009 I would suggest you start by replacing your first 39 lines with these!@ECHO OFF&SETLOCAL ENABLEEXTENSIONSFOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTIONFOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#GOTO :EOFThen I'd also suggest you change the executable lines at the bottom to:START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /qSTART /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qnCALL %CDROM%\SOFTWARE\OEMLOGO.CMDCALL %CDROM%\SOFTWARE\REGISTRY.CMDCALL %CDROM%\SOFTWARE\CLEANUP.CMDroger will try thankyou Link to comment Share on other sites More sharing options...
donald7777 Posted September 10, 2009 Author Share Posted September 10, 2009 ok the calls work great but it still give me an error when it trys to find the tag. i even removed all the tag info so to test out the code be errors still appear.@ECHO OFF&SETLOCAL ENABLEEXTENSIONSFOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTIONFOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#GOTO :end:endREM Here we'll add the options for every OS.CALL %SystemDrive%\DPsFnshr.exeSTART /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /qSTART /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qnCALL %CDROM%\SOFTWARE\OEMLOGO.CMDCALL %CDROM%\SOFTWARE\REGISTRY.CMDCALL "del /f /q %SystemDrive%\*.TAG"CALL %CDROM%\SOFTWARE\CLEANUP.CMDexithere is error:The system cannot find the batch label specified - XPHRmaybe i am blind and missing an obvious command. Link to comment Share on other sites More sharing options...
Yzöwl Posted September 10, 2009 Share Posted September 10, 2009 Change your CALL to a GOTO and change your :end label:@ECHO OFF&SETLOCAL ENABLEEXTENSIONSFOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTIONFOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO GOTO %%~n#GOTO :EOF:XPHOREM Here we'll add the SOFTWARE to install to the XP Home OEM version.REM "%~dp0" refers to the full path the Install.cmd is in, so you don't have to worry about drive lettersREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPHO.TAGGOTO OPTS:XPHRREM Here we'll add the SOFTWARE to install to the XP Home Retail version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPHR.TAGGOTO OPTS:XPHUREM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPHU.TAGGOTO OPTS:XPPCREM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPPC.TAGGOTO OPTS:XPPOREM Here we'll add the SOFTWARE to install to the XP Professional OEM version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPPO.TAGGOTO OPTS:XPPRREM Here we'll add the SOFTWARE to install to the XP Professional Retail version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPPR.TAGGOTO OPTS:XPPUREM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.REM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPPU.TAGGOTO OPTS:XHODREM Here we'll add the SOFTWARE to install to the XP Home OEM version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XHOD.TAGGOTO OPTS:XHRDREM Here we'll add the SOFTWARE to install to the XP Home Retail version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XHRD.TAGGOTO OPTS:XHUDREM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XHUD.TAGGOTO OPTS:XPCDREM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPCD.TAGGOTO OPTS:XPODREM Here we'll add the SOFTWARE to install to the XP Professional OEM version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPOD.TAGGOTO OPTS:XPRDREM Here we'll add the SOFTWARE to install to the XP Professional Retail version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPRD.TAGGOTO OPTS:XPUDREM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.%SystemDrive%\DPsFnshr.exeREM End this sectionREM end of this section :DEL/F %SYSTEMDRIVE%\XPUD.TAG:OPTSREM Here we'll add the options for every OS.START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /qSTART /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qnCALL %CDROM%\SOFTWARE\OEMLOGO.CMDCALL %CDROM%\SOFTWARE\REGISTRY.CMDCALL %CDROM%\SOFTWARE\CLEANUP.CMDIs it possible that you have UNIX line endings as opposed to DOS?It may be worth running the file through something like UnixToDos to make sure.Is it at all possible that in your posted code that you have removed a lot of information?i.e All of the software you are applying to each edition of Windows.If so you may have a problem with the size of the batch file.My suggestion in this case would be to call individual batch files instead of labels within the batch file itself. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now