/bundles/itninjaweb/img/Breadcrumb_cap_w.png
HI,

i want to delete a folder and that folder contain sub folders and some files in that can any one suggest me i try the

RD and DEl properties but still the problem is there ...pls ...help me
0 Comments   [ - ] Hide 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.
Answer this question or Comment on this question for clarity

Answers

0
RD /S /Q <Directory Full Path>
Answered 06/21/2011 by: murali.bhat
Purple Belt

Please log in to comment
0
Are you trying to do this as a CA? What tool are you using?

If your doing it as a CA, then you can shell your cmd string into a VBS.
Answered 06/21/2011 by: Dodgyguy
Senior Yellow Belt

Please log in to comment
-4
Thanks Murali...

you done a excellent job...

if possible u guide me to learn batch script for that provide me some links to learn batch script..

Thanks a lot....
Answered 06/21/2011 by: hari4243
Purple Belt

Please log in to comment
0
dim filesys, demofolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofolder = filesys.GetFolder("c:\projects\")
demofolder.Delete

Mostly avoid :\ with in the scripts use environment variables instead of it

comp=oShell.ExpandEnvironmentStrings("%ProgramFiles%")

can rewrite the script above as

dim filesys, demofolder
set filesys = CreateObject ("Scripting.FileSystemObject")
comp=oShell.ExpandEnvironmentStrings("%ProgramFiles%")
set demofolder = filesys.GetFolder(& comp & "\projects\")
demofolder.Delete (TO delete the folder via VBS) this can be used in Installshield
Answered 06/22/2011 by: kanthsri87
Senior Yellow Belt

Please log in to comment
0
what is going on these days? nobody knows how to make researches anymore?

the amount of easy questions, answerable by a quick google search, is increasing exponiently.

enough said!
Answered 06/22/2011 by: kardock
Second Degree Green Belt

Please log in to comment
0
Please tell me this thread is a joke!
Answered 06/22/2011 by: mpryszlak
Senior Yellow Belt

Please log in to comment
0
If only...

Look at the OP's other threads and responses to ther threads.
Answered 06/22/2011 by: VBScab
Red Belt

Please log in to comment
0
Stellar
Answered 06/22/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment