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
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)
Please log in to answer
Posted by:
Dodgyguy
13 years ago
Posted by:
kanthsri87
13 years ago
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
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
Posted by:
anonymous_9363
13 years ago
Posted by:
hari4243
13 years ago
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.