Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating URL

Status
Not open for further replies.

DeSn

Programmer
Nov 20, 2001
111
BE
Hi,

How can I create an URL in java with represents a networkpath?

URL u = new URL("\\max1\test");

The above doesn't work :(
 
URL u = new URL("file://\\max1\test");

or :

URL u = new URL("file://C:/max1/test");

--------------------------------------------------
Free Database Connection Pooling Software
 
or probably better -

URL u = new URL("file:///max1/test");

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top