fromhell
10-19-2008, 11:45 PM
hi guys,
i got a prob when try use Server.MapPath to find a folder name include & character ( for example: Picture 2008 & 2009).
can someone help me with this
error:
Microsoft VBScript runtime error '800a004c'
Path not found
Code :
strPhysicalPath = Server.MapPath(".\" & ShowSub)
If ShowSub > " " then
ShowSub = Replace(ShowSub, " ", "%20")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strPhysicalPath)
Set objFolderContents = objFolder.Files
i got a prob when try use Server.MapPath to find a folder name include & character ( for example: Picture 2008 & 2009).
can someone help me with this
error:
Microsoft VBScript runtime error '800a004c'
Path not found
Code :
strPhysicalPath = Server.MapPath(".\" & ShowSub)
If ShowSub > " " then
ShowSub = Replace(ShowSub, " ", "%20")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strPhysicalPath)
Set objFolderContents = objFolder.Files