March 3, 200620 yr 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!=-
March 4, 200620 yr 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
Create an account or sign in to comment