painkilla Posted January 19, 2005 Posted January 19, 2005 i dont know what it is but i just cant find an way to delete the desktop shortcutThis is the code in my start.cmdDEL "%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!!
Astalavista Posted January 19, 2005 Posted January 19, 2005 wrong codingshould bedel "%allusesprofile%\desktop\alcohol.*"
Shark007 Posted January 19, 2005 Posted January 19, 2005 Try placing a 2ND % sign after the 120%DEL "%systemdrive%\Documents and Settings\All Users\Desktop\Alcohol 120%%.lnk"Shark
Spyder2k Posted January 19, 2005 Posted January 19, 2005 Try placing a 2ND % sign after the 120%DEL "%systemdrive%\Documents and Settings\All Users\Desktop\Alcohol 120%%.lnk"SharkNever seen that, what does it do?
Shark007 Posted January 20, 2005 Posted January 20, 2005 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 commandand to remove it from the desktop, guess what, i use 2 % signs.and this works, is why.Shark
Astalavista Posted January 20, 2005 Posted January 20, 2005 how is that better than the solution i posted. i hv been using it for months now.
Shark007 Posted January 20, 2005 Posted January 20, 2005 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%SharkEDIT:del "%allusesprofile%\desktop\alcohol.*"also, your path is incorrect,"%allusesprofile%should be"%allusersprofile%
codeblue Posted March 12, 2005 Posted March 12, 2005 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
Astalavista Posted March 12, 2005 Posted March 12, 2005 it works for me!sorry i just looked at my post. heheh wrong spelling... typo.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now