Re: How to get full path...
- Posted by Craig <cgilbert at CENNET.MC.PEACHNET.EDU> Mar 09, 1997
- 861 views
Lee woo seob wrote: > 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 Try David Cuny's text gui library; I believe there is a routine for exactly that situation somewhere in the file 'files.e', named full_path(). =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- J. Craig Gilbert cgilbert at mc.peachnet.edu "Positing infinity, the rest is easy." Roger Zelazny, in 'Creatures of Light and Darkness' =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-