Wedge1 Posted November 5, 2004 Posted November 5, 2004 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?
homiebrah Posted November 5, 2004 Posted November 5, 2004 I use these commands:del c:\docume~1\administrator\desktop\*.* /F /Qdel c:\docume~1\alluse~1\desktop\*.* /F /Qdel c:\docume~1\defaul~1\desktop\*.* /F /QThey are in a batch file that runs via cmdlines.txt.
MCT Posted November 5, 2004 Posted November 5, 2004 DEL /S /Q "%userprofile%\desktop\program.lnk"its been discussed 1000's of times
CoffeeFiend Posted November 5, 2004 Posted November 5, 2004 Eitherdel "%UserProfile%\desktop\program.lnk"ordel "%AllUsersProfile%\desktop\program.lnk"depending on the case... I'm sure a search would have found that As for the switches (/S /Q and others) try del /? at the command prompt...
totoymola Posted November 5, 2004 Posted November 5, 2004 del "%UserProfile%\desktop\program.lnk"ordel "%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
CoffeeFiend Posted November 5, 2004 Posted November 5, 2004 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\*.lnkHmm, 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\*.lnkreally works better (what was I saying about typos already? ...)
totoymola Posted November 6, 2004 Posted November 6, 2004 [edit]I doubt using:del %systemdirve%\documents and settings\desktop\*.lnkreally works better newwink.gif (what was I saying about typos already? ...)Hahaha!!! You have sharp eyes crahak! But seriously. There is no typo when I tried using del "%UserProfile%\desktop\program.lnk". But I think I forgot about the quotes. Anyways, either of them works.
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