Hi
Of course, there is a long version to the answer too.
In order to do something like creating a directory on a remote machine,
there must be something on the remote machine to work for you.
There are several possible solutions, but there is no magical "API" to
do it. Some of the possible solutions are already posted in response to
the topic and, of course, there might be security constraints.
As a general rule, you need a "server" application on the remote machine
and a "client" application on your local machine. The "client"
application must be able to order to the "server" application, and the
"server" application must have the rights to create the directory. The
"client" must be able to connect to the "server" and to post the request
through the network.
This is how the shared directories work under Windows (the local file
explorer is the client for some svchost server service on the remote
machine and the local file explorer transmits the "new directory" order
to the remote machine and displays back the results).
This is how a ftp client / ftp server application work.
Using only Java components, you can create a small Java client that uses
RMI (over TCP/IP) to connect to a remote RMI server. Or use EJBs running
on a Glassfish server to create the directory in response to a local
request.
And so on.
What is your exact need ?
Hope it helps
Mihai
Le 08/10/2010 03:14, fabian david camargo amaya a écrit :
you can't do it, java's security policy prevent you to do it
2010/10/6, shilpa oberoi<[email protected]>:
Hi,
how to create directory on remote server using some API??
--
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en