Jump to content

Recommended Posts

Posted

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.


Posted

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.

Posted
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"

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