remote « directory « Java I/O Q&A





1. How do you open remote directory using iText PDF Java library?    stackoverflow.com

I am using the iText PDF library in my Java app to generate test scenario reports. In the report, I'm populating a table with a row for each scenario. I'm trying ...

2. checking if a directory exists on a remote machine and copying the file on it    stackoverflow.com

I have a shared folder F on a remote machine M.Now i want to run a program on my local machine which does following.

Check if subfoder  S existis with \\remoteMachine\F
 ...

3. accessing remote directory structure    coderanch.com

Hi, I am trying to write a web application which needs to accesses remote machines directories & get the files to present that to user. I am assuming that using web application can not access directory structure of remote machine, so, I am thinking RMI base application for remote communication. Machine 1 (will have web application which user will access through ...

4. Create a shared directory on a remote machine    coderanch.com

Hi, The power of the Java is limited to the API exposed by the underlying JVM. Don't think standard JDK provides any features of this sort. If you want to do this, you would have to write a JNI code to expose the Win32 function which actually creates a shared directory in remote m/c and then use it in Java with ...

5. Search a directory in Remote machine    coderanch.com

6. create folder on remote system    coderanch.com

If the appropriate part of the remote system's filesystem is being made available to remote clients (via SMB, NFS, AFP etc.), with permission for the user running the Java code to write to it, then you can just use normal Java File operations like File.mkdir(). Of course, you need to use the right file path syntax; that's nothing to do with ...

7. problem in saving a file in the relative path which is uploaded at remote place    coderanch.com

Originally posted by bhagya raavi: sir, i written the code for uploding a file.after uploding it i read the content of file and written to a file.i want to save that file in the webserver folder where the tomcat is running.i uploaded the file in the remote place. I've not used java/tomcat environment in months, but I think there are two ...

8. directory remote transfer    forums.oracle.com

Hi, I am working on an application to transfer directories remotely using multi-threads, sockects and FileOutputStream classes. In the client side everything works perfect, no problems. I check whether the path is a file or directory and send every single file In the server side the file is received but when trying to write in a directory: BufferedOutputStream out = new ...

9. Remote Directory Watcher    forums.oracle.com

It depends how you're going to access files on the remote machine. If they are mapped through file sharing it doesn't make any difference. More likely you'll need to use FTP or the like, in which case you need to seek out a 3rd party ftp client library. Basically you'll have to poll the directory, getting directory listings periodically and looking ...





10. Transfer of file to a shared folder on remote machine    forums.oracle.com

Hi, I want to transfer a file present on windows machine A to a shared folder (\\16.192.54.56\Test) on machine B having ip as 16.192.54.56, using java. I tried using the renameTo api of File class but its not helping. It gives permission denied exception. I am able to open the shared folder from machine A using the shared folder path (\\16.192.54.56\Test) ...

11. Accessing remote directory???    forums.oracle.com

13. Getting absolute path of a file running in remote machine    forums.oracle.com

Hi, I want to get the absolute path of a file that will be created in the remote server. Inside a directory XYZ in remote machine, the file will be created and the remote machine's address is xxx.xx.x.x. I have used the following snippet File f=new File(Filename); f.getAbsolutePath(); Now, in the output am getting the absolute path of the file as ...