I can't figure out what I am doing wrong in my script. Here is my 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"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set fLayout = oFSO.OpenTextFile("Z:\Layouts\Test\810-10-MP-2.txt", ForReading)'Z:\\Layouts\\Senior Pkgs\\YBK-C-DLS.txt
'Set fJob = oFSO.CreateTextFile(jobPath)
Response.Write layoutF
I get the message 'Microsoft VBScript runtime (0x800A004C)
Path not found' when I set fLayout. The path is correct. What is wrong? What am I missing?
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.OpenTextFile("Z:\Layouts\Test\810-10-MP-2.txt", ForReading)'Z:\\Layouts\\Senior Pkgs\\YBK-C-DLS.txt
'Set fJob = oFSO.CreateTextFile(jobPath)
Response.Write layoutF
I get the message 'Microsoft VBScript runtime (0x800A004C)
Path not found' when I set fLayout. The path is correct. What is wrong? What am I missing?