Results 1 to 2 of 2

Thread: delete all dir and file but not the dir CSV

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,950

    delete all dir and file but not the dir CSV

    The path is:

    C:\Lavori_Vb6\GARDA_INF\CSV\

    how to?
    Attached Images Attached Images  

  2. #2
    Member
    Join Date
    Jul 2024
    Posts
    40

    Re: delete all dir and file but not the dir CSV

    use te function DIR and GETATTR for that

    and nest the directories so you can empty them one by one as you need to delete them

    If you want it simpler, use FSO:
    Code:
    fso.DeleteFolder sPath, TRUE

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