How to check for the existence of the Temporary folder namedTemporary Folder 1,2 and so on As

Y

Yuvraj

Hi All,

I am using the below code:

FSO.deletefolder Environ("Temp") & "\Temporary Directory*", True
Set FSO = CreateObject("scripting.filesystemobject")
FSO.DeleteFolder Environ("Temp") & "\Temporary Directory*", True

Problem is that I want to check for the existence for the Temporary
Directory* means Temporary Diectory a and b ans so on, can i check for
the existence of folder before deleting as the name here is not fixed.

Regards,

Yuvraj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top