Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Scripting print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
By Request VBS Script To Delete All Files From A Specified Folder


Bookmark and Share

By: Don Hite
Posted On: 5/11/2009

VBS Script:



strDirectory = "C:\DirectoryFolderName"



Set FSO = CreateObject("Scripting.FileSystemObject")

Set objFolder = fso.GetFolder(strDirectory)



For Each objFile in objFolder.Files

objFile.Delete True



Next

MsgBox "Done"

  myITforum.com ©2010 | Legal | Privacy