How to get full path...

new topic     » topic index » view thread      » older message » newer message

Hi all!

Does anyone know how to get "full complete file path string" from the
"not-full" path given by user?
For example, Let's assume we have a kind of text viewer, named "eulist.exe",
and the user may give the text file to view to the program in a various way as;

ex)
1) eulist xxx.doc -- xxx.doc exists in current directory
2) eulist ..\xxx.doc -- xxx.doc exists in parent directory
3) eulist .\xxx.doc  -- xxx.doc exists in current directory
4) eulist \xxx.doc -- xxx.doc exists in a root directory of current drive
5) eulist nowdir\xxx.doc -- xxx.doc exists sub-directory nowdir of the current
                            directory.
There can be many other ways to specifiy the location of the file...

Is there any way to get the "full file path string" like
"c:\text\docs\xxx.doc"(begins from drive letter and ends by the file name),
from "not-full" ones as above exams?

Thanks in advance!
bye -- from Lee, woo seob

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu