IsThere1_Folder

Checks if a folder is found or not, can pass either mapped path or unmapped path, not both

Function IsThere1_Folder(Path_MapPathed, Path_UnMapPathed)
 IsThere1_Folder  = False
 FilePath     = ""
 If Path_MapPathed > "" And Path_UnMapPathed = "" Then
  FilePath    = Path_MapPathed
 ElseIf Path_MapPathed = "" And Path_UnMapPathed > "" Then
  FilePath    = Server.MapPath(Path_UnMapPathed)
 End If
 If FilePath = "" Then Exit Function
 fpp1 = fso.GetParentFolderName(FilePath)
 IsThere1_Folder = fso.FolderExists(fpp1)
End Function

Path_MapPathed, Path_UnMapPathed
One of them

IsThere1_Folder(&#34;e:\Directory\Folder\Website.com&#34;, &#34;&#34;)<br/>IsThere1_Folder(&#34;&#34;, &#34;../wwroot/Account/User&#34;)

Views 312 Downloads 128

'FSO', 'FileSystemObject', 'folder', 'MapPath', 'Server', 'search', 'directory', 'IsThere1', 'IsThere'

ANmarAmdeen
324
File System Classic ASP
Revisions

v1.0