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


[/align][/align][/align]
0 Comments   [ + ] Show Comments

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.

Answers

0
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)
FileToDelete.Delete
Answered 02/22/2011 by: Poochie
Senior Yellow Belt

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