/build/static/layout/Breadcrumb_cap_w.png

Need a script to delete folder & file

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

Answers (6)

Posted by: dyehardfan 13 years ago
Second Degree Blue Belt
0
http://itninja.com/question/adobe-acrobat-professional-6.0-via-sms94

http://www.devguru.com/technologies/vbscript/quickref/filesystemobject_deletefile.html
Posted by: anonymous_9363 13 years ago
Red Belt
0
Cheat! You used a search engine! What sort of idiot does that? Tcha!
Posted by: perk 13 years ago
Senior Yellow Belt
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
Posted by: perk 13 years ago
Senior Yellow Belt
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]
Posted by: captain_planet 13 years ago
Black Belt
0
ORIGINAL: VBScab

Cheat! You used a search engine!
- Ha ha. Made me smile that one....
Posted by: JonHall 13 years ago
Senior Purple Belt
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)€.

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ