[HD2 Windows Mobile 6.5 ROM Development] bobsbbq:
Hello, can someone that is good with batch files help me to create a file to automatically set all files in my kitchen folder back to the proper attributes?

I accidentally right clicked on the kitchen folder and removed the read only tag and it removed all the attributes. Now I'm having trouble to get my kitchen to build without a error. Here is the script I found to put in the Kitchen build rom.bat. But I want to modify it so that it will apply to all folders and all sub folders and files in the whole kitchen.

echo.removing unwanted cpr files from SYS...

echo.

echo.Please wait...

attrib +A -S -H -R SYS\*.cpr /s

del SYS\LS_AlarmScene_240x320.cpr /s

del SYS\LS_AlarmScene_240x400.cpr /s

del SYS\LS_AlarmScene_320x240.cpr /s

del SYS\LS_AlarmScene_320x320.cpr /s

del SYS\LS_AlarmScene_400x240.cpr /s

del SYS\LS_AlarmScene_480x480.cpr /s

del SYS\LS_AlarmScene_480x640.cpr /s

del SYS\LS_AlarmScene_480x854.cpr /s

del SYS\LS_AlarmScene_640x480.cpr /s

del SYS\LS_AlarmScene_854x480.cpr /s

del SYS\LS_Global_240x320.cpr /s

del SYS\LS_Global_240x400.cpr /s

del SYS\LS_Global_320x240.cpr /s

del SYS\LS_Global_320x320.cpr /s

del SYS\LS_Global_400x240.cpr /s

del SYS\LS_Global_480x480.cpr /s

del SYS\LS_Global_480x640.cpr /s

del SYS\LS_Global_480x854.cpr /s

del SYS\LS_Global_640x480.cpr /s

del SYS\LS_Global_854x480.cpr /s

del SYS\LS_LockScene_240x320.cpr /s

del SYS\LS_LockScene_240x400.cpr /s

del SYS\LS_LockScene_320x240.cpr /s

del SYS\LS_LockScene_320x320.cpr /s

del SYS\LS_LockScene_400x240.cpr /s

del SYS\LS_LockScene_480x480.cpr /s

del SYS\LS_LockScene_480x640.cpr /s

del SYS\LS_LockScene_480x854.cpr /s

del SYS\LS_LockScene_640x480.cpr /s

del SYS\LS_LockScene_854x480.cpr /s

del SYS\LS_PhoneAlertScene_240x320.cpr /s

del SYS\LS_PhoneAlertScene_240x400.cpr /s

del SYS\LS_PhoneAlertScene_320x240.cpr /s

del SYS\LS_PhoneAlertScene_320x320.cpr /s

del SYS\LS_PhoneAlertScene_400x240.cpr /s

del SYS\LS_PhoneAlertScene_480x480.cpr /s

del SYS\LS_PhoneAlertScene_480x640.cpr /s

del SYS\LS_PhoneAlertScene_480x854.cpr /s

del SYS\LS_PhoneAlertScene_640x480.cpr /s

del SYS\LS_PhoneAlertScene_854x480.cpr /s

del SYS\LS_PhoneCallScene_240x320.cpr /s

del SYS\LS_PhoneCallScene_240x400.cpr /s

del SYS\LS_PhoneCallScene_320x240.cpr /s

del SYS\LS_PhoneCallScene_320x320.cpr /s

del SYS\LS_PhoneCallScene_400x240.cpr /s

del SYS\LS_PhoneCallScene_480x480.cpr /s

del SYS\LS_PhoneCallScene_480x640.cpr /s

del SYS\LS_PhoneCallScene_480x854.cpr /s

del SYS\LS_PhoneCallScene_640x480.cpr /s

del SYS\LS_PhoneCallScene_854x480.cpr /s

del SYS\LS_SimplePinScene_240x320.cpr /s

del SYS\LS_SimplePinScene_240x400.cpr /s

del SYS\LS_SimplePinScene_320x240.cpr /s

del SYS\LS_SimplePinScene_320x320.cpr /s

del SYS\LS_SimplePinScene_400x240.cpr /s

del SYS\LS_SimplePinScene_480x480.cpr /s

del SYS\LS_SimplePinScene_480x640.cpr /s

del SYS\LS_SimplePinScene_480x854.cpr /s

del SYS\LS_SimplePinScene_640x480.cpr /s

del SYS\LS_SimplePinScene_854x480.cpr /s

del SYS\SlidingPanel_240x320.cpr /s

del SYS\SlidingPanel_240x320_0411.cpr /s

del SYS\SlidingPanel_320x240.cpr /s

del SYS\SlidingPanel_320x320.cpr /s

del SYS\Titanium_240x320.cpr /s

del SYS\Titanium_240x400.cpr /s

del SYS\Titanium_320x240.cpr /s

del SYS\Titanium_320x320.cpr /s

del SYS\Titanium_400x240.cpr /s

del SYS\Titanium_480x480.cpr /s

del SYS\Titanium_480x640.cpr /s

del SYS\Titanium_480x854.cpr /s

del SYS\Titanium_640x480.cpr /s

del SYS\Titanium_854x480.cpr /s

echo.

echo Done!!!

REM Change Attribs

ECHO Changing Attributes.....

cd temp\dump

attrib S00? +H /S

rem attrib *.* +A -S -H -R

attrib *.dll +S +H +R

attrib *.exe +S +H +R

attrib *.lnk -S -H -R

attrib *.csv +S +H +R

attrib *.htm +S +H +R

attrib *.mui +S +H +R

attrib *.doc +S +H +R

attrib *.dat +S +H +R

attrib *.provxml +S +H +R

attrib *.xls +S +H +R

attrib *.xml +S +R

attrib *_manila +H

attrib *manil* +H

attrib *.mid +S +R

attrib *.vol +S +R

attrib *.txt +S +R

attrib *.wav +S +R

attrib *.wma +S +R

attrib *.png +H

attrib *.brn +H

attrib *.gif +S +R

attrib *.jpg +S +R

attrib *.bmp +S +R +H

attrib *.inf -S -R -H

attrib +A +R +H +S *.provxml

attrib -H -S -R *.jpg

attrib -H -S -R *.bmp

echo.

echo Done!!!

cd..

cd..

I will want to put this .bat file in the root of the kitchen so it does all files.