473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

URL.getPath() vs. URL.getFile()

as
URL.getFile()
and
URL.getPath()
seem allways to return the same value, wy did one introduce getPath()
in 1.3?

can i use both methods to get the full file name? I'd prefer getFile,
because its 1.2 compatible.

any wanings?

cu,
thomas
Jul 17 '05 #1
1 8349
there is also
file.getAbsolutePath();
that is the one i use

"nome" <th**************@web.de> wrote in message
news:fe************************@posting.google.com ...
as
URL.getFile()
and
URL.getPath()
seem allways to return the same value, wy did one introduce getPath()
in 1.3?

can i use both methods to get the full file name? I'd prefer getFile,
because its 1.2 compatible.

any wanings?

cu,
thomas

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: hala | last post by:
hi, I am trying to make my vb program find the path of the msn messenger application (I want this to be done automatically on which ever computer it is downloaded). The code I use is returning...
0
by: nome | last post by:
found the solution myself: getFile() returns path + query example: http://posting.google.com/post?cmd=post&name=myName getFile() returns post?cmd=post&name=myName getPath() only post
2
by: Dado | last post by:
After this: String dir = "c:/Program Files/" file = new File(dir); and this: System.out.println(file.toString); I got:
1
by: Kyle Kaitan | last post by:
I have the following code: >>>>> Assembly asm = Assembly.LoadFrom("Foo.dll"); foreach (string s in asm.GetManifestResourceNames()) { Console.WriteLine("found manifest resource: " + s); } ...
2
by: pittster | last post by:
Hi, I've bound a Gridview control to the GetFiles method Here is a code snippet: DirectoryInfo objDi = new DirectoryInfo(Server.MapPath("./somepath")); FileInfo arrFileInfo =...
1
by: jlipe | last post by:
I am trying to write a program thet has two drop down buttons: store name report name I have a submit button on the form that needs to search a directory based on the selections above. Does...
4
by: elventear | last post by:
Hello, I am trying to use someone else's module that makes use of inspect.getsourcelines. The code was not working for me, so I have been debugging to see why it is not working. I have reduced...
1
by: Tim Kelley | last post by:
Is there a way to have GetFiles() show hidden files also? Thanks
3
by: Connolly | last post by:
Hey there, new Python user here. Currently, I'm working on a project in Python for my college work, I chose to use Python since I heard of its great advantages, now for designing GUI's I'm using...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.