November 6, 200421 yr Trying to get rid of Desktop links on specific users. I use the following code for all users, but that doesn't seem to work...DEL "%Allusersprofile%\desktop\WinZip.lnk"However, if I use this code...DEL "C:\Documents and Settings\Username\desktop\WinZip.lnk"It works.So my question is, what is the code to use to get rid of the Desktop links, for any user logged on.
November 6, 200421 yr drop down to a command prompt. type set and press enter. make sure that allusersprofile is still listed as a system variable. if it's not there, that would be your problem. if it is, then make sure the path that is associated with it is correct.
November 6, 200421 yr Trying to get rid of Desktop links on specific users. I use the following code for all users, but that doesn't seem to work...DEL "%Allusersprofile%\desktop\WinZip.lnk"However, if I use this code...DEL "C:\Documents and Settings\Username\desktop\WinZip.lnk"It works.So my question is, what is the code to use to get rid of the Desktop links, for any user logged on.If Winzip.lnk is on a particular user's desktop, then deleting it from "%allusersprofile%\desktop" won't work.%userprofile% refers to the profile directory of the currently logged on user.del "%userprofile%\desktop\winzip.lnk"
November 6, 200421 yr Author Sweet, that's what I needed to know. Funny thing is, I thought I was using %userprofile% before but was having some problems with it.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now