Jump to content

delete start menu


Recommended Posts


@ ripken204

I have never used AutoIt, but get the impression from what I've seen of it that either

RunWait(@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"')

or

RunWait(@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

  • 11 months later...

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. :P

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