Jump to content

Remove desktop shortcuts command please?


Recommended Posts

Posted

Admins, mods, please don't delete this. I have tried and tried with search.

I use batch files for my unattended installation of applications. What command can be used on the apps that I do not need/want a desktop shortcut for? Maybe somebody can provide an example of what it should look like?


Posted

I use these commands:

del c:\docume~1\administrator\desktop\*.* /F /Q

del c:\docume~1\alluse~1\desktop\*.* /F /Q

del c:\docume~1\defaul~1\desktop\*.* /F /Q

They are in a batch file that runs via cmdlines.txt.

Posted

Either

del "%UserProfile%\desktop\program.lnk"
or
del "%AllUsersProfile%\desktop\program.lnk"

depending on the case... I'm sure a search would have found that :P

As for the switches (/S /Q and others) try del /? at the command prompt...

Posted
del "%UserProfile%\desktop\program.lnk"

or

del "%AllUsersProfile%\desktop\program.lnk"

You know what, I don't know why this doesn't work for me. That's why I'm using the long one.

del %systemdirve%\documents and settings\desktop\*.lnk

Posted
You know what, I don't know why this doesn't work for me.  That's why I'm using the long one.

del %systemdirve%\documents and settings\desktop\*.lnk

Hmm, perhaps try typing SET [enter] at the command prompt and check what they're set to? Or perhaps a typo or not having enclosed properly in double quotes? ...

There is no apparent reason why this wouldn't work...

[edit] I doubt using:

del %systemdirve%\documents and settings\desktop\*.lnk

really works better ;) (what was I saying about typos already? ...)

Posted
[edit]I doubt using:

del %systemdirve%\documents and settings\desktop\*.lnk

really works better newwink.gif (what was I saying about typos already? ...)

Hahaha!!! You have sharp eyes crahak! :lol:

But seriously. There is no typo when I tried using del "%UserProfile%\desktop\program.lnk". But I think I forgot about the quotes. :D

Anyways, either of them works.

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