[THIN] Re: [nosig] RE: OT - Assistance with script to delete folders

  • From: Angela Smith <angela_smith9@xxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Tue, 28 Sep 2010 21:29:19 +1000


I cannot delete the top level as the top folder has specific rights which are 
not inherited..  Would be good if I can delete everything except the top 
folder.  Otherwise I would need to script the ACL modifications also.  Users 
group needs modify access to the top folder..  Can this be scripted easily?


From: it@xxxxxxxxxxxx
To: thin@xxxxxxxxxxxxx
Date: Tue, 28 Sep 2010 08:52:54 +0100
Subject: [THIN] [nosig] RE: OT - Assistance with script to delete folders 

You might want to look at this:
Easiest way would be to create a script to remove the top level folder and 
everything inside, and then recreate the top level folder.
@echo off
rmdir /s /q somedir
mkdir somedir


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 1368213www.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


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





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



here 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.     

Other related posts: