Guest Muso Posted October 8, 2007 Posted October 8, 2007 Hi people I would like to delete folders using a wildcard from command prompt; but I see that the RD command doesn't support wildcards, and DELTREE no longer exists on WINXP. Specifically, our PC's are very short on hard drive space, and I'm claiming back some by deleting the uninstall files for Microsoft updates (the $NtUninstallxxxxx folders that live in the WINNT folder). I'm not actually uninstalling the updates, just deleting the uninstall files. If the updates cause a problem, we can always re-image that machine. Is there another command or script I can use to delete multiple folders using wildcards? Or is there a free program that can delete the $NtUninstallxxxx folders (on local and remote machines)? I have about 100 PC's that I would like to do this on a regular basis (say monthly). Many thanks Mark
Guest WaIIy Posted October 8, 2007 Posted October 8, 2007 Re: Delete folders using wildcard On Sun, 07 Oct 2007 21:49:10 -0700, Muso <NZMuso01@gmail.com> wrote: >Hi people > >I would like to delete folders using a wildcard from command prompt; >but I see that the RD command doesn't support wildcards, and DELTREE >no longer exists on WINXP. > >Specifically, our PC's are very short on hard drive space, and I'm >claiming back some by deleting the uninstall files for Microsoft >updates (the $NtUninstallxxxxx folders that live in the WINNT folder). >I'm not actually uninstalling the updates, just deleting the uninstall >files. If the updates cause a problem, we can always re-image that >machine. > >Is there another command or script I can use to delete multiple >folders using wildcards? Or is there a free program that can delete >the $NtUninstallxxxx folders (on local and remote machines)? I have >about 100 PC's that I would like to do this on a regular basis (say >monthly). > >Many thanks > >Mark Try posing your question in microsoft.public.scripting.vbscript These guys are amazing.
Guest Patrick Keenan Posted October 8, 2007 Posted October 8, 2007 Re: Delete folders using wildcard "Muso" <NZMuso01@gmail.com> wrote in message news:1191818950.134747.69040@o3g2000hsb.googlegroups.com... > Hi people > > I would like to delete folders using a wildcard from command prompt; > but I see that the RD command doesn't support wildcards, and DELTREE > no longer exists on WINXP. > > Specifically, our PC's are very short on hard drive space, and I'm > claiming back some by deleting the uninstall files for Microsoft > updates (the $NtUninstallxxxxx folders that live in the WINNT folder). > I'm not actually uninstalling the updates, just deleting the uninstall > files. If the updates cause a problem, we can always re-image that > machine. > > Is there another command or script I can use to delete multiple > folders using wildcards? Or is there a free program that can delete > the $NtUninstallxxxx folders (on local and remote machines)? I have > about 100 PC's that I would like to do this on a regular basis (say > monthly). > > Many thanks > > Mark I'll mention that ccleaner, which is pretty small, can help you clear out various files, including the uninstallers (in the main screen, Advanced, Hotfix uninstallers), temp files and browser caches. However, it seems to only do this on local drives and the current account, not remote systems; on the other hand, it can be set to run at startup so you only have to go round and install and configure it once. http://www.ccleaner.com HTH -pk
Recommended Posts