<SparTacuS> Posted June 6, 2004 Posted June 6, 2004 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.
Bâshrat the Sneaky Posted June 6, 2004 Posted June 6, 2004 [Components] IEAccess=off OEAccess=off WMPOCM=offadd this to your winnt.sif and no shortcuts to IE, OE or WMP will show up!
<SparTacuS> Posted June 6, 2004 Author Posted June 6, 2004 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.
MCT Posted June 6, 2004 Posted June 6, 2004 del /Q "%userprofile%\Start Menu\Programs\Internet Explorer.lnk" that works 4 me
<SparTacuS> Posted June 6, 2004 Author Posted June 6, 2004 My solution turned out to be a combination of the aboveI turned off the access points in my unattended sif file as Bâshrat the Sneaky suggested and then created new ones where I wanted them using the shortcut.exe that I posted about herehttp://www.msfn.org/board/index.php?showtopic=20355BTW - I still don't know why I couldn't treat these like the others.
GreenMachine Posted June 6, 2004 Posted June 6, 2004 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.
<SparTacuS> Posted June 6, 2004 Author Posted June 6, 2004 Thanks GM - nice explanation. I thought I was going crazy! LOL
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