Am awuful sorry, the error is in the text file.
I have remove all comments etc from the text file and it is working okay.
But I can see why, so I will have to add comments one by one to see the line causing the problem.
As am new to the forum I can't find a way to add attachment or upload files
so here is the file with comments
: REm Filename: Fileame.txt
: REm Description: This text file declares variavle to be used by the main script reads the hardwareModule list and sets the variable accordingly
: REm Description: Reads the varaible and sets it in the scripts
: REm Notes: Ensure the varable are added as below !!!
: REm Notes: Lines starting with Semicolon (:) are ignored, using for /F loop !!!
: REm Notes: Declare all varaible for all supported languages ie EN-UK, En-US, DE-DE etc
:
: REm Purpose: Help automate scripts without modifying the main script for new hardware
: REm Created By:
: REM Created Date: 28/10/2010
: Rem Revised Date:
: Rem Revised Notes:
:
: rem ===============================================================================================================
: rem ===============================================================================================================
:
: current supported languages are EN-UK, En-US, DE-DE, ES-ES, FR-FR, It-IT and JA-JP
: New languages can be added withou changing the main scripts.
: New File has to be named as the PC or laptop module name, variable used to define PC or laptop is "%SModel%"
:
: Input and Keynoard layout
http://msdn.microsoft.com/en-us/goglobal/bb895996.aspx: rem ================: REM M11 EN-UK info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET EN-UK sFileOrder=M11_EN-UK.txt
:
: Rem Set Disk volume label reguired by oscdimg.exe
SET EN-UK sDiskVolumeName=105P036_Rev00
:
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P037_Rev00
SET EN-UK SFilename=105P036_Rev00
:
: Rem Disk media Kit number
SET EN-UK sKIT=105K036_Rev00_A
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-UK
SET EN-UK sWinpeLANG=en-us
: Rem Winpe Package Language, Lp file. English US is for all Engliah variants ie UK Engliah is EN-US
: Rem Don;t add the file extension ie "lp_en-us.cab" will be "lp_en-us"
SET EN-UK sWinpeLpCabFile=en-Us
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET EN-UK sWinpeKeyboard=test
: Rem Winpe time zone, GMT for UK
SET EN-UK sTimeZone='GMT Standard Time'
: rem ================: REM M11 EN-US info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET EN-US sFileOrder=M11-US.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P037_Rev00
SET EN-US SFilename=105P037_Rev00
: Rem Set Disk volume label reguired by oscdimg.exe
SET EN-US sDiskVolumeName=105P037_Rev00
: Rem Disk media Kit number
SET EN-US sKIT=105K037_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
EN-US sWinpeLANG=en-US
: Rem Winpe Package Language, Lp file. English US is for all Engliah variants ie UK Engliah is EN-US
: Rem Don;t add the file extension ie "lp_en-us.cab" will be "lp_en-us"
EN-US sWinpeLpCabFile=lp_en-us
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET EN-US sWinpeKeyboard=0409:00000409
: Rem Winpe time zone, GMT for Us
EN-US sTimeZone="Pacific Standard Time"
:
: rem ================: REM M11 DE-DE info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET De-DE sFileOrder=M11-DE.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P038_Rev00
SET De-DE SFilename=105P038
: Rem Set Disk volume label reguired by oscdimg.exe
SET De-DE sDiskVolumeName=105P038_Rev00
SET De-DE sKIT=105K038_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
SET De-DE sWinpeLANG=De-DE
: Rem Winpe Package Language, Lp file. English US is for all Engliah variants ie UK Engliah is EN-US
: Rem Don;t add the file extension ie "lp_de-de.cab" will be "lp_de-de"
SET De-DE sWinpeLpCabFile=lp_de-de
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET De-DE sWinpeKeyboard=0407:00000407
: Rem Winpe time zone, for germany
SET De-DE sTimeZone="W. Europe Standard Time"
:
: rem ================:: REM M11 ES-ES info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET ES-Es sFileOrder=M11-ES.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P039_Rev00
SET SFilename_M11_ES-ES=105P039_Rev00
: Rem Set Disk volume label reguired by oscdimg.exe
SET ES-Es sDiskVolumeName=105P039_Rev00
SET ES-Es sKIT=105K039_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
ES-Es sWinpeLANG=ES-ES
: Rem Winpe Package Language, Spanish Lp file
: Rem Don;t add the file extension ie "lp_es-es.cab" will be "lp_es-es"
SET ES-Es sWinpeLpCabFile=lp.cab
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET ES-Es sWinpeKeyboard=040a:0000040a
: Rem Winpe time zone, for Spain
SET sTimeZone_M11_ES-ES="Romance Standard Time"
:
: rem ================: REM M11 FR-FR info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET FR-FR sFileOrder=M11-FR.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P040_Rev00
SET FR-FR SFilename=105P040_Rev00O
: Rem Set Disk volume label reguired by oscdimg.exe
SET FR-FR sDiskVolumeName=105P040_Rev00
SET FR-FR sKIT=105K040_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
SET FR-FR sWinpeLANG=De-DE
: Rem Winpe Package Language, French Lp file.
: Rem Don;t add the file extension ie "lp_fr-fr.cab" will be "lp_fr-fr"
SET FR-FR sWinpeLpCabFile=lp_fr-fr
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET FR-FR sWinpeKeyboard=040c:0000040c
: Rem Winpe time zone, for France
SET FR-FR sTimeZone="Romance Standard Time"
:
: rem ================: REM M11 IT-IT info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET IT-IT sFileOrder=M11-It.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P041_Rev00
SET IT-IT SFilename=105P041_Rev00
: Rem Set Disk volume label reguired by oscdimg.exe
SET IT-IT sDiskVolumeName=105P041_Rev00
IT-IT sKIT=105K041_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
SET IT-IT sWinpeLANG=IT-IT
: Rem Winpe Package Language, Italian Lp file.
: Rem Don;t add the file extension ie "lp_it-it.cab" will be "lp_it-it"
SET IT-IT sWinpeLpCabFile=lp_it-it.cab
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET IT-IT sWinpeKeyboard=0410:00000410
: Rem Winpe time zone, for Italy
SET IT-IT sTimeZone="W. Europe Standard Timee"
:
: rem ================: REM M11 JA-JP info========================
:
: Rem Set Disk file order reguired by oscdimg.exe
SET JA-JP sFileOrder=M11-JP.txt
: Rem ISO File names, don't use spaces in filename, reguired by oscdimg.exe
: REM This is the program name prefix for the iso ie 105P042_Rev00
SET JA-JP SFilename=105P042_Rev00
: Rem Set Disk volume label reguired by oscdimg.exe
SET JA-JP sDiskVolumeName=105P042_Rev00
SET JA-JP sKIT=105K042_Rev00
: Rem Winpe Language, English US is for all Engliah variants ie UK Engliah is EN-US
SET JA-JP sWinpeLANG=JA-JP
: Rem Winpe Package Language, Lp file. English US is for all Engliah variants ie UK Engliah is EN-US
: Rem Don;t add the file extension ie "lp_ja-jp.cab" will be "lp_ja-jp"
SET JA-JP sWinpeLpCabFile=lp_ja-jp
: Rem Winpe Keyboard Configuration, Specially important when using laptops
SET JA-JP sWinpeKeyboard=ja-jp
: Rem Winpe time zone, Tokyo for Japanese
SET JA-JP sTimeZone="Tokyo Standard Time"
:
: rem [================: End of Config File info========================]
: rem [=================================================================]
:
I will try all combinations to see what is making it hang
Anyway so happy its woking without the comments, I was trying to comment it for a template etc
thanks for your help, your help is appreciated