At the end of the postInstallActionList I'm executing somefile.cmd . This script generates a text file which contains a list of files which copied to rollback directory. Then I read this file using readFile and put the output in some variable (list variable). When I using showInfo to check the list variable everything looks fine. Then , I'm trying to go over list variable by using the foreach tag in order to extract the real location of these files and to check each one of them if fileIsLocked. Unfortunately the results form foreach are weird. It seems that foreach omitting the and some more characters.
As much as I know fileIsLocked can deal with one file at time and my purpose is to go over all files which copied to the rollback directory.
Is there any option that foreach will not omit these characters ? Is there any method/technique to list all files under rollback directory in order to go over them for specific operarion ?
asked 09 Dec '12, 10:49
Can you paste an example of output and the code using in the foreach?
answered 09 Dec '12, 13:36
If you are generating a list of files where each line is a new file name,
answered 09 Dec '12, 13:43