Jump to content

Recommended Posts

Posted

As part of my finishing off I have been writing a cmd file to rearrange the Start Menu shortcuts to my liking. I have been using a "copy /y" to copy each shortcut to where I want it, then following up with a del /f to delete the original.

Labourious I know but it has worked perfectly for every shortcut apart from the Internet Explorer and Outlook Express shortcuts that are placed via "%USERPROFILE%\Start Menu. These two just will not move or delete - I constantly get "file not found"

My question - are these two different somehow? Are they not *.lnk files?

Here's the commands I've used (all similar worked)

copy /y "%USERPROFILE%\Start Menu\Programs\Internet Explorer.lnk" "%AllUsersProfile%\Start Menu\Online\Internet\Internet Explorer.lnk"
del /f "%USERPROFILE%\Start Menu\Programs\Internet Explorer.lnk"

Can someone check my code and see what I'm doing wrong.


Posted

Thanks for trying MCT but no-go. These last 2 are definately in the user's Start Menu.

And thanks also Bâshrat the Sneaky - but if I do that I won't be able to copy them!

Never mind I'll have to do it by making new shortcuts.

Posted
BTW - I still don't know why I couldn't treat these like the others.
Look at the shortcuts timestamps: they are created when the profile is created, after setup, not before. Cannot delete them if they are not there, can you now? (Which is also the reason you had a "File not found" error.)

They are created during ActiveSetup. ActiveSetup is a per user setup that exists for IE, OE, WMP, amongst others, and runs upon first logon per user.

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