Jump to content

Documents and Settings info needed for Cleanup.cmd


Recommended Posts

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.

Link to comment
Share on other sites


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"

Link to comment
Share on other sites

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