Powerhouse Posted November 6, 2004 Posted November 6, 2004 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.
aresgodofwar Posted November 6, 2004 Posted November 6, 2004 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.
Synapse Posted November 6, 2004 Posted November 6, 2004 I would do... in a batchfilecd\cd %allusersprofile%\desktopdel winzip.lnk
jrzycrim Posted November 6, 2004 Posted November 6, 2004 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"
Powerhouse Posted November 6, 2004 Author Posted November 6, 2004 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.
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