Jump to content

Recommended Posts

Posted

i dont know what it is but i just cant find an way to delete the desktop shortcut

This is the code in my start.cmd

DEL "%systemdrive%\Documents and Settings\All Users\Desktop\Alcohol 120%.lnk"

But this just dont seem to work. I also have tried al variations such as : alcohol120%.lnk or Alcohol_120%.lnk and i have tried other peoples code to delete this shortcut but i keeps saying. C:\Documents and Settings\All Users\Desktop\Alcohol 120%.lnk cannot be found But it is there!!


Posted
Try placing a 2ND % sign after the 120%

DEL "%systemdrive%\Documents and Settings\All Users\Desktop\Alcohol 120%%.lnk"

Shark

Never seen that, what does it do?

Posted

I dont know why, but the cmd.exe ignores the 1st % in batch files.

In runounceex.cmd, i use 2 %'s to display 'Alcohol 120%'

when i remove the dir from start menu i use 2 %'s in the command

and to remove it from the desktop, guess what, i use 2 % signs.

and this works, is why.

Shark

Posted

Asta..

del "%allusesprofile%\desktop\alcohol.*"
i dont see how it can work.

alcohol.* would remove files named alcohol with any extension.

but the file is called alcohol 120%

Shark

EDIT:

del "%allusesprofile%\desktop\alcohol.*"

also, your path is incorrect,

"%allusesprofile%

should be

"%allusersprofile%

  • 1 month later...
Posted

Thanks Shark007, was scratching my head over that % thing. The reason two %% work is because the % is interprited as a space, sometimes see it in file names from the internet, so 2 of them mean a space then a %.

Please dont ask me why the second one isnt interprited as a space :wacko:

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