Jump to content

Cleaning up shortcuts


Recommended Posts

I have been using the cleanup.cmd file quite effectively to cleanup after the program installations, but I can not get rid of the Alcohol 120%.lnk on the desktop.

I always test the code first so i tried without any success:

DEL "%AllUsersprofile%\Desktop\Alcohol 120%.lnk"

but it gives a file not found when tried in a dos window and notes that ...Alcohol 120.lnk could not be found, meaning it does include the % thus giving me a mismatch, does anyone have any advice? Thanks in advance.

Link to comment
Share on other sites


try the following instead:

DEL "%AllUsersProfile%\Desktop\Alcohol*.lnk"

this should do it. probably the %-sign is the thing the commandprompt does not want to process.

there are some other ways to get this to work but the use of * should do it too. it's the same problem as with german ä, ö and ü or with the french ç.

Link to comment
Share on other sites

ok, sorry about that i just found a solution to it, which i fluked, the original was:

DEL "%AllUsersprofile%\Desktop\Alcohol 120%.lnk", but for dos to recognise a % sign, i did this :

DEL "%AllUsersprofile%\Desktop\Alcohol 120%%.lnk"

with 2 % signs it worked. :D

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