Help please ms dos

titibonjour -  
 titibonjour -
Bonjour,

je vais vous expliquer j'ai deux fichier *.bat voici le premier? C'est un fichier pour crée automatiquement des images Iso sur pour le service wds de 2k8 enfin voila. le premier fait appel au second copyPE que l'on peut voir, des l'execution de cette ligne le programme s'arrete, le reste tourne bien j'ai tester séparément. je vous montre le second .bat, on peut voir qu'en fin du programme il y a rien de speciale à part les messsages d'erreur, je mis connait pas trop en commande ms dos, si quelqu'un pourrait m'aider pour que le script fonctionne dans un seul fichier. Merci beaucoup

-----------------------------------------------------------------
E:
cd "E:\Windows AIK\Tools\PETools"
copyPE x86 C:\ImagesWDS\Win_PE
c:
echo ----Integration de l'image de decouverte au CD PE----
echo _____________________________________________________
del C:\ImagesWDS\Win_PE\ISO\Sources\boot.wim
Copy /y E:\ImagesWDS\2009\boot.wim C:\ImagesWDS\Win_PE\ISo\sources\
E:
cd "E:\Windows AIK\Tools\x86"
copy imagex.exe C:\ImagesWDS\Win_PE\ISO
echo ----Creation de l'iso----
cd..
cd PETools
oscdimg -n -m -o -bc:\ImagesWDS\win_PE\etfsboot.com c:\ImagesWDS\Win_PE\ISo c:\ImagesWDS\win_pe_cd.iso
-------------------------------------------------------------------

copype.cmd

---------------------------------------------------------------
@echo off
setlocal

set _P=%~dp0%
set TEMPL=ISO

if /i "%1"=="" goto usage
if /i "%2"=="" goto usage
if /i not "%3"=="" goto usage
set SOURCE=%_P%%1
set DEST=%2

if not exist "%SOURCE%\winpe.wim" (
echo Invalid architecture: %1
goto :EOF
)

if exist "%DEST%" (
echo Destination directory exists: %2
goto :EOF
)

mkdir "%DEST%"
if errorlevel 1 (
echo Unable to create destination: %2
goto :EOF
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL

if exist "%SOURCE%\bootmgr" copy "%SOURCE%\bootmgr" "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
if exist "%SOURCE%\bootmgr.efi" copy "%SOURCE%\bootmgr.efi" "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
if exist "%SOURCE%\boot\etfsboot.com" copy "%SOURCE%\boot\etfsboot.com" "%DEST%"
if errorlevel 1 goto :FAIL
if exist "%SOURCE%\boot\efisys.bin" copy "%SOURCE%\boot\efisys.bin" "%DEST%"
if errorlevel 1 goto :FAIL
if exist "%SOURCE%\boot" xcopy /cherky "%SOURCE%\boot" "%DEST%\%TEMPL%\boot\"
if errorlevel 1 goto :FAIL
if exist "%SOURCE%\EFI" xcopy /cherky "%SOURCE%\EFI" "%DEST%\%TEMPL%\EFI\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%SOURCE%\winpe.wim" "%DEST%\winpe.wim"
copy "%SOURCE%\winpe.wim" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

endlocal
echo.
echo Success
echo.
echo Updating path to include peimg, oscdimg, imagex
echo.
echo %~dp0
echo %~dp0..\%PROCESSOR_ARCHITECTURE%
echo.

set PATH=%PATH%;%~dp0;%~dp0..\%PROCESSOR_ARCHITECTURE%
cd /d "%2"

goto :EOF

:usage
echo Usage: copype [x86 ^| amd64] destination
echo.
echo Example: copype x86 c:\windowspe-x86
goto :EOF

:FAIL
echo Failed to create working directory

-------------------------------------------------------------------------------------

1 réponse

titibonjour
 
C bon j'ai trouvé dsl du dérangement c'etait tout bête

juste a mettre Call devant a+
0