sconway
3rd June 2005, 03:02
I have a need to find out if a network PC file exists from a Baan session. I have the path name and file name in a Baan table. When I combine the path and file together in a string, I get more backlashes (\) than I need. ex. path = \\serverA\directoryB\ is loaded to a string variable and becomes \\\\serverA\\directoryB\\ --- I tried strip$ and sprintf$ but did not work.
When I try to use the seq.fstat.local command with the string variable in quotes, the return code is -1 --- file does not exist.
If I use the command (with no variable) seq.fstat.local("\\serverA\directoryB\filename", num.bytes), then the return code = 0 --- file exists.
When I try to use the seq.fstat.local command with the string variable in quotes, the return code is -1 --- file does not exist.
If I use the command (with no variable) seq.fstat.local("\\serverA\directoryB\filename", num.bytes), then the return code = 0 --- file exists.