M
Mike Fechner
Guest
If you are on Windows, consider the .NET core framework classes the Windows API of the 21st century. The System.IO packages are always available. Get used to it or stick with UNIX.... Von: Thomas Mercer-Hursh Gesendet: 10.08.2014 22:39 An: TU.OE.Development@community.progress.com Betreff: [Technical Users - OE Development] Drive letters in Windows Drive letters in Windows Thread created by Thomas Mercer-Hursh 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. Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...