Jump to content

Removing only files and sub directores in a folder


Recommended Posts

Hi there,

how do I remove only files and sub directores in a folder?

c:\temp\* not c:\temp

Thanks

Daniel

<{POST_SNAPBACK}>

NOTE: It is ALWAYS better to post in an existing thread then start a new one. Your two threads are nearly identical so please do not do this!

For those of you now tuning in... this newb opened this thread pertaining to almost the same topic. Refer to that one if you have no clue what I am talking about.

I take it _DirRemoveContents isn't working for you? This is the function you need to use so I suggest studying the code provided in the File.au3 file if you think you can do it better.

*** Matt @ MPCS

Edited by Matt @ MPCS
Link to comment
Share on other sites

Thanks

NOTE: It is ALWAYS better to post in an existing thread then start a new one. Your two threads are nearly identical so please do not do this!

For those of you now tuning in... this newb opened this thread pertaining to almost the same topic. Refer to that one if you have no clue what I am talking about.

I take it _DirRemoveContents isn't working for you? This is the function you need to use so I suggest studying the code provided in the File.au3 file if you think you can do it better.

*** Matt @ MPCS

<{POST_SNAPBACK}>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...