cancel
Showing results for 
Search instead for 
Did you mean: 

access the server file system

Former Member
0 Kudos

hi expert

how to access server file system through webDynpro

anybody tell me how to give the path to the server so server can understand the folder link

urgently.....................

thanks

Regards

vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a folder in the server and access it using

File f = new File("filename");

http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

Regards

Ayyapparaj

Former Member
0 Kudos

thanks for the quick reply

For example

Server is on sys 10 and and my studio is on sys11

where i store the file and how the server get identify

tel me the path and code to access the file / open the file

thanks

Regards

vijay

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If the server contains D drive (D:), then folder in it can be accessed using

File file = new File( "D:\TestFolder\" );

As mentioned, make sure the folder contains read/write access for everyone.

Regards,

Harini S

Former Member
0 Kudos

Hello Vijay,

You must use the Class File for this purpose


String fileName = "Serv10://new folder/file.txt";

File file = new File( fileName);

// Use streams to read and write to the file - FileInputStream

you must have proper authentication to access the drives and directories in the server.

Regards

- Vinod

*