IniRead,"%SourceDir%\I386\%driverIndex%","Version","CabFiles","%myTemp%" Echo,"%myTemp%" If,ExistFile,"tmp.tmp",FileDelete,"tmp.tmp" Set,"%cmd%","/c for %a in (%myTemp%) do echo %a > tmp.tmp" Echo,"%cmd%" ShellExecute,Open,"cmd.exe", "%cmd%" Exit,"Ende"
brings
Sucessfully read specified Inifile from: [V:\BCD\cds\XPP_DE_SP2\I386\DRVINDEX.INF] Section: [Version] Key: [CabFiles] into variable: [%myTemp%] with value: [SP2,driver]
SP2,driver
Sucessfully tested if file existed: [tmp.tmp] executing command: [FileDelete,tmp.tmp]
FileDelete - Sucessfully deleted file: [tmp.tmp]
Sucessfully changed the value of [%cmd%] to: [/c for %a in (%myTemp%) do echo %a > tmp.tmp]
/c for %a in (%myTemp%) do echo %a > tmp.tmp
Successfully executed command: [Open] using: [cmd.exe] with parameters: [ "/c for %a in (%myTemp%) do echo %a > tmp.tmp"]
Ende
The variable %myTemp% is not substituted correctly.
Peter