Jump to content

Can't move Start Menu items


Recommended Posts

I'm trying to set up a .bat file that will move all the items out of my Start Menu for both All Users and my single profile, "Standard". Everything I try seems to error out, I believe because it can't move the Startup folder. Here's what I tried last, to skip the Startup folder:

mkdir "C:\Windows\Temp\ExamConv Moved Files"
xcopy "%USERPROFILE%\Start Menu\Programs\" "C:\Windows\Temp\ExamConv Moved Files\" /EXCLUDE:"%USERPROFILE%\Start Menu\Programs\Startup\*.*"

It says "Cannot read ... \startup\*.*" I've tried with with and without the /EXLUDE, with the "move" and "copy" commands, no luck.

Any ideas?

Thanks! -=Boston!=-

Link to comment
Share on other sites


To use the exclude option in xcopy, you have to create a file containing strings, one in each line. Then you have to point xcopy to this file and then the files, whose full qualified path contain any of the strings, is excluded.

So much to the theory, but unfortunately I didn't get this to work, even with a created file.

But perhaps, the following line helps you for the first.

xcopy "%USERPROFILE%\Start Menu\Programs\*" "C:\Windows\Temp\ExamConv Moved Files\" /IEC

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