I am getting a Path Not Found error on a path that I know is correct.
Can anyone tell me what I might be doing wrong?
Here is what the code looks like:
Dim FSO, Infile, YR, path
path = "\\server\depts\GAL\GALLogs\"
YR=DatePart("YYYY", Date)
set FSO = createObject("Scripting.FileSystemObject")
set Infile = FSO.OpenTextFile(path & YR & "\YrToDate\Email.log", 1,
False)
I have tried different methods of building the actual path in the
OpenTextFile line and have had no success. Any help or suggestions
would be greatly appreciated. Thanks in advance.
Chuck