Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNC paths with FileSystemObject

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I am trying to load a file to adjust some parts of it in an ASP script and when I try a GetFile I get the message that it Cannot find the file. I know the file is there. Here is the code:

Dim layoutP
layoutP = "\\Dell2400\KPDP2\Layouts\Senior Pkgs\"
Dim layoutF
layoutF = layoutP & formArray(6) & ".txt"
Const ForReading = 1, ForWriting = 2
Dim oFSO, fLayout, fJob
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set fLayout = oFSO.GetFile("\\Dell2400\KPDP2\Layouts\Senior Pkgs\YBK-C-DLS.txt")
'Set fJob = oFSO.CreateTextFile(jobPath)
Response.Write layoutF

Here is the error:
Microsoft VBScript runtime (0x800A0035)
File not found
/sendyb.asp, line 35
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top