I need to delete a shourtcut inside the alluser profile
Path= %ALLUSERPROFILE% \start menu\aaa\xxx\zzz.url

Can any one give the script for me?.

Thanks in advance

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Would look something like that:

Dim Path

set objShell = createobject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Path = objShell.SpecialFolders("AllUsersPrograms") & "\MODIFY_PATH_HERE\FILE.XYZ"
MsgBox "Allusers Programs: " & Path
Set FileToDelete = FSO.GetFile(Path)
Answered 02/22/2011 by: Poochie
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity