Delete Folder-->SubFolders--->Files..!

A

ALESSANDRO Baraldi

Hi.
I need to Delete all MainFolder contents if is possible without cicle
through the
main folder....!

Have you some idea...!

ManyThanks

Alessandro(IT)
 
D

Dirk Goldgar

ALESSANDRO Baraldi said:
Hi.
I need to Delete all MainFolder contents if is possible without cicle
through the
main folder....!

Have you some idea...!

ManyThanks

Alessandro(IT)

If Windows Scripting is installed on the machine, I think using the
FileSystemObject's DeleteFolder method will do what you want.
 
A

ALESSANDRO Baraldi

Dirk Goldgar said:
If Windows Scripting is installed on the machine, I think using the
FileSystemObject's DeleteFolder method will do what you want.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

I never use it can you tell me how can i do...!
Now i try with API shell32 with Trash Simulator, work good, bat
i retrive Error if I have Folder-ManySubFolder-ManyFiles ....!
I'm using Access and I'm Linking BE in SubFolder with BE(switch) sistem.
I really think that the problem it's about the Fast Deleting.
Before Delete i remove Link, and all Immage.Picture connection, but
nothing to do.....!
If i delete each Files in each SubFolder with Kill and RemDir all OK....!

Sorry about my English very bad....!

Thanks.

Alessandro.(IT)
 
Top