T
Thomas Mercer-Hursh
Guest
I am having some trouble implementing the handling of Windows drive letters that I would like because of how search and file-info behave. If I try the following program: define variable chPath as character no-undo initial "ap\1099\1099mn.p". define variable chFullPath as character no-undo. propath = "c:\work\IS\ISrel\src," + propath. message substring(propath,1,70) view-as alert-box. chFullPath = search(chPath). message "Search" chFullPath view-as alert-box. file-info:file-name = chFullPath. message "File-info" file-info:full-pathname view-as alert-box. And include the drive letter in the initial entry in the propath where the indicated file is found, then both search and file-info will return full paths which include the drive letter. However, if the drive letter is missing in that propath entry, then both return full paths which are missing the drive letter. I want the drive letter always, as long as it exists on the operating system in question. So, what to use ... hopefully not some .NET component. The full pathname delivered by input from os-dir does seem to provide the drive letter consistently, but that seems like a very obtuse way to get there.
Continue reading...
Continue reading...