Hi i need a vb script to delete a file inside the alluser profile
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]
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
Answers (1)
Please log in to answer
Posted by:
Poochie
13 years ago
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
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.