gunsmokingman Posted September 11, 2005 Share Posted September 11, 2005 Since you could not figure it out, The first one is the simple one, but it will not work on XP SP2 that why there the second one. If you need more information here is the web page I found thescript from, How Can I Delete a Folder and All Its Subfolders? Link to comment Share on other sites More sharing options...
Yzöwl Posted September 11, 2005 Share Posted September 11, 2005 @ ripken204I have never used AutoIt, but get the impression from what I've seen of it that eitherRunWait(@COMSPEC & ' /c rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs"')RunWait(@COMSPEC & ' /c md "C:\Documents and Settings\All Users\Start Menu\Programs"')orRunWait(@COMSPEC & " /c rd /s /q ""C:\Documents and Settings\All Users\Start Menu\Programs""")RunWait(@COMSPEC & " /c md ""C:\Documents and Settings\All Users\Start Menu\Programs""")may be a little closer to what you wanted. Link to comment Share on other sites More sharing options...
ripken204 Posted September 11, 2005 Author Share Posted September 11, 2005 doesnt work, its rly a pain b/c when i go thru runonce it wont let me open the cmd Link to comment Share on other sites More sharing options...
Yurek3 Posted August 12, 2006 Share Posted August 12, 2006 How write this skript for delete thisone folder of C;,D:,E:,F: etc.cmdow @ /HID@echo off rd "C:\Documents and Settings\Administrator" /s /qmd " C:\Documents and Settings\Administrator" Link to comment Share on other sites More sharing options...
Jeremy Posted August 12, 2006 Share Posted August 12, 2006 You call that simple?lmfao... Link to comment Share on other sites More sharing options...
blinkdt Posted August 14, 2006 Share Posted August 14, 2006 You could try AutoIt macros to clean out Programs from Start:DirRemove( @ProgramsCommonDir & "\Accessories", 1)FileDelete( @ProgramsCommonDir & "\*.*")DirRemove( @ProgramsDir & "\Accessories", 1)FileDelete( @ProgramsDir & "\*.*")Where @ProgramsCommonDir is the path to the "All Users" Start Menu's Programs folder and @ProgramsDir is the path to the current user's Programs folder on the Start Menu. I don't know of a wildcard that would handle all folders, so you would need to reference individual folders a la:DirRemove( @ProgramsCommonDir & "\Accessories", 1)DirRemove( @ProgramsCommonDir & "\Games", 1)DirRemove( @ProgramsCommonDir & "\Startup", 1)Setting it up would take a little time, but it should work. Sorry, not gonna test it on my machine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now