|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VBScript, FileSystemObject, and UNC Names
I have a VBScript that is trying to use the FileSystemObject on UNC names and I am having problems. I cannot find any documentation to indicate that the FSO does not work with UNC names, so I am hoping that the problem is mine.
Does anyone have any experience or knowedge in this area? I have tried fso.getFile("\\path\filename.pdf") and fso.getFolder("\\path") and both return the error: Microsoft VBScript runtime error: Path not found. Both \\path and \\path\filename.pdf exist. Thanks! |
|
#2
|
|||
|
|||
|
I presume 'path' and 'filename' are just aliases for purpose of example. Show your exact code. I use UNC in my Access project to link to data and need the server name in the pathname. Does yours include that?
|
|
#3
|
|||
|
|||
|
My Mistake...
Quote:
That is correct. While trying to explain my code to someone else (in an effort to find the problem while trying to explain things) I found my problem. There was a leading space in the source file name. So, everything does work as expected. Thanks! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > VBScript, FileSystemObject, and UNC Names |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|