Lokinb Posted March 15, 2006 Posted March 15, 2006 Hello allThis is my first post here so forgive me if I screw anything up.I think this is the right place to post this problem, any help would be greatly appreciated.What I am doing is creating an installer for an exe and a pre packaged installer, this is not by choice I am doing it for work and I am stuck with what they gave me.The Problem: I have the installer up and working, But it is messy so I created a batch file to delete a few things, the batch file deletes everything it is supposed to except shortcuts on the desktop.Here is my batch file:@ECHO onCOPY C:\Exponent\Websem.DAT "C:\WebSEM" /Y /VDEL "C:\Exponent\unins000.dat"DEL "C:\Exponent\unins000.exe"DEL "C:\Exponent\Websem.DAT"DEL "C:\Exponent\WebSEM.EXE"DEL "C:\Exponent\infoafter.txt"PauseDEL "%userprofile%\Desktop\clean" PauseDEL "%userprofile%\Desktop\vidpatch" PauseDEL "C:\Exponent\cleanup.bat"The pause's are just so I can see the errors. Error= cannot find fileWhat do I need to do to make this delete the shortcutsalso I have not done any batch files or progrmming for at least ten years.Thanks in advance.Lokinb
LLXX Posted March 15, 2006 Posted March 15, 2006 It must appends the ".lnk" to name...DEL "%userprofile%\Desktop\clean.lnk" PauseDEL "%userprofile%\Desktop\vidpatch.lnk
Yzöwl Posted March 15, 2006 Posted March 15, 2006 DEL "%USERPROFILE%\DESKTOP\CLEAN.LNK" "%USERPROFILE%\DESKTOP\VIDPATCH.LNK"
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