View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Yuvraj Yuvraj is offline
external usenet poster
 
Posts: 27
Default How to check for the existence of the Temporary folder namedTemporary Folder 1,2 and so on As

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