/build/static/layout/Breadcrumb_cap_w.png

HOW TO DELETE THE FOLDER AND SUB FOLDER USING A BATCH FILE

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   [ + ] Show comments

Answers (8)

Posted by: murali.bhat 13 years ago
Purple Belt
0
RD /S /Q <Directory Full Path>
Posted by: Dodgyguy 13 years ago
Senior Yellow Belt
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.
Posted by: kanthsri87 13 years ago
Senior Yellow Belt
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
Posted by: kardock 13 years ago
Second Degree Green Belt
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!
Posted by: mpryszlak 13 years ago
Senior Yellow Belt
0
Please tell me this thread is a joke!
Posted by: anonymous_9363 13 years ago
Red Belt
0
If only...

Look at the OP's other threads and responses to ther threads.
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
Stellar
Posted by: hari4243 13 years ago
Purple Belt
-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....
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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