ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to check for the existence of the Temporary folder namedTemporary Folder 1,2 and so on As (https://www.excelbanter.com/excel-programming/427916-how-check-existence-temporary-folder-namedtemporary-folder-1-2-so.html)

Yuvraj

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


All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com