Greetings,
I have been using the Stream class to assist in fully qualifying filespec
portions within my class library, as follows:
/* Use the Object Rexx stream object / qualify method to do as much work as
we can get it to do... */
FINDstream = .stream~new(FINDfilenamequery)
FINDfilename = FINDstream~qualify
drop FINDstream
I am noticing that the Stream class qualify method does not perform the Windows
API GetLongPathName as I am still left with a full path with ~ characters in
it... the short version of Long Filename
objects within the full path string.
What would a convenient place be to wrap Windows API's GetLongPathName and
GetShortPathName be? Bare functions to RexxUtil? Additional methods of the
Stream class?
I suspect this is what the qualify method of the Stream class is doing:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364963%28v=vs.85%29.aspx
"GetFullPathName does not convert the specified file name, lpFileName. If the
specified file name exists, you can use GetLongPathName or GetShortPathName to
convert to long or short path names,
respectively."
Now from what I recall, I do not believe ~qualify requires the object to exist,
it is just very handy to convert filespecs such as "C:myfile.txt" to the full
path of the current working directory of
the C: drive and including that in the output. It is also good for being able
to resolve relative pathing, such as "..\..\myotherfile.txt"
Oh, or are they already wrapped and exposed to ooRexx and I just do not realize
it?
Unfortunately I no longer am able to compile ooRexx on Windows as the compiler
requirements are beyond MSVC++ v6, the last version of MS's compiler I have
access to. So I would need to follow the RFE
process rather than being able to contribute a patch like I have done in the
past.
Open to suggestions.
I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel