May 12, 200521 yr 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.
May 21, 200521 yr 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 ?
Create an account or sign in to comment