Yzöwl Posted May 12, 2005 Posted May 12, 2005 Okay, that's great!Now, let's try to keep it our little secret
gunsmokingman Posted May 12, 2005 Posted May 12, 2005 Here Is A VBS file that does the same as Yzöwl Like His The Drive Does Not MatterON ERROR RESUME NEXTDim Shell : Set Shell = WScript.CreateObject("WScript.Shell")Dim AP : AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%")Set fso = CreateObject("Scripting.FileSystemObject")fso.DeleteFile( AP & "\Desktop\ *.lnk")Yzöwl nice coding.
muiz Posted May 21, 2005 Posted May 21, 2005 i have a dutch XP and it wont worki tried the vbs also.I even renamed the word desktop into dutch ( Bureaublad )Nothing happens.So i must do something wrongfor /d %%a in ("%AllUsersProfile:\All Users=%\*") do if exist "%%~a\Desktop\*" del /q "%%~a\Desktop\*.lnk"How i put this in my .cmd ?
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