Greetings everyone,
I am new to the forums. I have a Java program that resides on our iSeries 520.
It needs to determine if a file exists on a Windows 2000 server. I am tried to use the following line of code try to access a file on the Windows server. It always returns false. If I run the application from within WebSphere Studio on my PC it returns true.
Note: filename is a string variable that contains the full path and name of the file, that I am checking to see if it exisats.
return (new File(filename)).exists();
Does anyone know how to access Windows file directory from the AS400 using Java?
Thanks in Advance,
- chris
I am new to the forums. I have a Java program that resides on our iSeries 520.
It needs to determine if a file exists on a Windows 2000 server. I am tried to use the following line of code try to access a file on the Windows server. It always returns false. If I run the application from within WebSphere Studio on my PC it returns true.
Note: filename is a string variable that contains the full path and name of the file, that I am checking to see if it exisats.
return (new File(filename)).exists();
Does anyone know how to access Windows file directory from the AS400 using Java?
Thanks in Advance,
- chris
Comment