Hi, You might want to look at this: http://www.computing.net/answers/programming/vbscript-to-delete-all-subfolders/14650.html Easiest way would be to create a script to remove the top level folder and everything inside, and then recreate the top level folder. i.e. @echo off rmdir /s /q somedir mkdir somedir Regards IT Helpdesk IT Support BM Polyco Ltd Tel: 020 8443 9002 | Fax: 020 8443 9011 | E-Mail: it@xxxxxxxxxxxx Crown Road, Enfield, Middlesex, EN1 1TX Registered in England No 1368213 www.polyco.co.uk P Please consider the environment before printing this e-mail. From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Angela Smith Sent: 28 September 2010 08:12 To: thin@xxxxxxxxxxxxx Subject: [THIN] OT - Assistance with script to delete folders Hi Im trying to create a script that runs on server startup that deletes all files/folders in a specific folder but without deleting the top level folder C:\TEST FOLDER1 FOLDER2 etc I tried using rmdir c:\Test\ /s /q but this deletes the test folder. I need to delete all subfolders except c:\test. Any ideas on how I can do this?? Citrix Server is running on Windows 2003 Thanks Click here<https://www.mailcontrol.com/sr/t4YO8rZuyJbTndxI!oX7Uk8r3ueBeE0sgOSFpGvEVNs+c1mFjgcCfbmj5KHvHT3EGLELryxzq6n02A3zwbO5JA==> to report this email as spam. BM Polyco Ltd Disclaimer This e-mail and the information it contains are confidential. If you have received this message in error please notify us immediately. You should not use or copy it for any purpose nor disclose its contents to any other party. The contents of this communication are advisory and are not binding on the Company unless supported by authorised documentation. This e-mail has been scanned for content by Websense Hosted Email Security<http://www.websense.com/>.