Jump to content

Deleting Setup Folders


Recommended Posts

After Unattended windows is installed, The "D" Folder on C: wont delete with cleanup command, the other folders delete with no problems. The "D" Folder is from the bashrat driver pack (Thanks by the way bashrat for a nice pack) Here's my Cleanup.cmd text

cmdow @ /HID

shutdown.exe -r -f -t 90 -c "Windows XP will now restart in 1.5 minutes..."

net user aspnet /delete

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"

DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

RD /S /Q %systemdrive%\drivers\

RD /S /Q %systemdrive%\install\

RD /S /Q %systemdrive%\D\

Link to comment
Share on other sites


ok thanks, that worked fine on my main system with audigy, however not on my other rig, using onboard sound. tried the original way and the way u suggested, it's still there. and oh yeah i donated 20 bucks on yer site via paypal earlier today. thanks alot for your help and driver pack

Link to comment
Share on other sites

Try This Then To remove The Last Folder

Save This As FcleanUp.vbs

  On Error Resume Next

  Dim ACT : Set ACT = CreateObject("WScript.Shell")

  Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

  Loc = ACT.ExpandEnvironmentStrings("%SystemDrive%")

  Smenu = ACT.ExpandEnvironmentStrings("%ALLUSERSPROFILE%")

  Fso.deleteFile(Smenu & "\Start Menu\Windows Update.lnk")

  Fso.deleteFile(Smenu & "\Start Menu\Set Program Access and Defaults.lnk")

  Fso.deleteFile(Smenu & "\Start Menu\Windows Catalog.lnk")

  Fso.Deletefolder(Loc & "\drivers")

  Fso.Deletefolder(Loc & "\D")

  Fso.Deletefolder(Loc & "\Install")

  Set ACT = Nothing

  Set Fso = Nothing

Link to comment
Share on other sites

same problem here..

but i've found a solution which solves mine

download XRD.EXE and copy it into $OEM$\$$\SYSTEM32

Replace your RD Command with the following

Attrib -R -H %systemdrive%\D\*.* /S /D

XRD %systemdrive%\D /S /Q /Y /F

RD %systemdrive%\D /S /Q

if you use the batch_file.cmd which installs applications increase the ShutDown Command with 60 Seconds to 180

and if you want you could even remove the XRD.EXE from the system32 folder

with the following command

del %systemroot%\system32\xrd.exe /S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...