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
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