I'd like to use some sort of login script for a Windows PE (Win7PE SE) doing this:
- detect all existing drives (read-write), c:, d:, e: ..., x: (default PE ramdrive)
- check each drive on root for a specific folder, i.e. RECYCLER / $Recycle.bin
- delete each match
I thought of executing this script each time the PE is booted. I don't know what's best for it; probably a cmd/batch script...?
I know, that the desired action could be done using something like rd /q/s c:\RECYCLER and so forth, but it should execute well for several systems (some having merely c:, x:; another one with c:, d:, e:, f:, v:, x: etc.).
My first idea was to use e.g. diskpart to get a list of available (NTFS) volumes and corresponding drive letters.
Dunno how to script this, though.
Any suggestions on this?
This post has been edited by Mikka: 13 August 2012 - 12:46 PM