Results 1 to 3 of 3

Thread: how to defined FileSystemObject

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    Angry delete folder

    hi !

    i try to delete all the folder content by use this cod :
    Dim fs
    Set fs = CreateObject("Scripting.FileSystemObject")
    fs.deleteFile "E:\WINNT\Desktop\test15\*.* but
    it's delete only the files that in the folder and not the sub directory ( sub-folders ) !
    pls help me !

    [Edited by Anavim on 06-15-2000 at 12:41 AM]

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Give this a go. You don't need to include it in the references this way, but you don't get the type ahead either.

    Code:
    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    Iain, thats with an i by the way!

  3. #3
    Junior Member
    Join Date
    May 2000
    Posts
    27

    try this

    hi

    try this it should work

    Set fs = CreateObject("Scripting.FileSystemObject")
    fs.deleteFile "E:\Temp\Waste"

    okdok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width