Answered EXEC command

  • Tuesday, March 20, 2012 6:53 AM
     
     

    Hi,

    I am trying to remove some subfolders from the main folder using  exec command:

    <Exec command="FOR /R $(DirLocation)\$(MySourceCodePath)_$(Version) %%i IN (bin) DO rmdir /S/Q %%i"/>

    <Exec command="FOR /R $(DirLocation)\$(MySourceCodePath)_$(Version) %%i IN (debug) DO rmdir /S/Q %%i"/>

    Here the subfolders "bin" and "debug" are removed from the main folder: $(DirLocation)\$(MySourceCodePath)_$(Version) i.e.

    e:\MysourceCode_1.1.110. It works fine. I have a lot of main folders starting from name:  e:\MysourceCode_ .The version after this name is changed for each folder. How do i remove from all folders these subfolders.

    Thanks,

All Replies