Hi,

i need a script to delete a file and folder from ALLUSERS of start menu...

C:\Documents and Settings\All Users\Start Menu\Programs\abc\xyz\pqr.lnk
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
http://itninja.com/question/adobe-acrobat-professional-6.0-via-sms94

http://www.devguru.com/technologies/vbscript/quickref/filesystemobject_deletefile.html
Answered 02/28/2011 by: dyehardfan
Second Degree Blue Belt

Please log in to comment
0
Cheat! You used a search engine! What sort of idiot does that? Tcha!
Answered 02/28/2011 by: VBScab
Red Belt

Please log in to comment
0
I tried the one provided by dyehard, its not working
Can any one provide me the code to delete the folder from the startmenu of the ALLUSERS profile.

Thanks
Answered 02/28/2011 by: perk
Senior Yellow Belt

Please log in to comment
0
thanks, i found this and it works

Dim fso, s
Set fso = CreateObject("Scripting.FileSystemObject")
s="c:\test"
fso.deletefolder(s),True [align=right]
[/align]
Answered 02/28/2011 by: perk
Senior Yellow Belt

Please log in to comment
0
ORIGINAL: VBScab

Cheat! You used a search engine!
- Ha ha. Made me smile that one....
Answered 02/28/2011 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0

ORIGINAL: cserrins

as a .bat file or command line you can do

rd "C:\Documents and Settings\All Users\Start Menu\Programs\abc\xyz" /S /Q

/Q is quiet and /S is to remove everything within that directory including the directory itself.

----

Corey,
I've tried using a variation of rd to delete a script's dependency folder without any luck. I like to keep the Package and Downloads folders clear, especially when the script has to download installers. Any ideas?

Launch €$(KBOX_SYS_DIR)\cmd€ with params €œrd /S /Q $(KACE_DEPENDENCY_DIR)€.

Answered 08/19/2011 by: JonHall
Orange Senior Belt

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