Sign in to follow this  
Followers 0
dkwokgs

Removing only files and sub directores in a folder

3 posts in this topic

Hi there,

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

c:\temp\* not c:\temp

Thanks

Daniel

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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}>

Share this post


Link to post
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
Sign in to follow this  
Followers 0