Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!usc!sdsu!csun!csuna!abcscnuk From: abcscnuk@csuna.csun.edu (Naoto Kimura) Newsgroups: comp.lang.pascal Subject: Dos4to5 unit (was: Reading a directory from Turbo.) Summary: Anybody want a unit for stuff in 5.0 not in 4.0 Message-ID: <2103@csuna.csun.edu> Date: 30 Jul 89 08:28:04 GMT References: <9559@xanth.cs.odu.edu> <563@infohh.rmi.de> <1989Jul29.011656.280@ddsw1.MCS.COM> Reply-To: abcscnuk@csuna.csun.edu (Naoto Kimura) Organization: CSU Northridge Lines: 29 In article <1989Jul29.011656.280@ddsw1.MCS.COM> andyross@ddsw1.MCS.COM (Andrew Rossmann) writes: ] ... (text deleted) ... ] ] Not EVERYONE puts COMMAND.COM in the root directory. Many people prefer ]to have it elsewhere. The above will only work under TP 5 and 5.5. The ]GetEnv function was not in TP3 or 4. ] ] andyross@ddsw1.MCS.COM Anybody interested in a unit that I put together that implements the the stuff in Dos unit with TP 5.0 that are unavailable in the Dos unit with TP 4.0 ? At present I don't have the same stuff for 3.0, but it shouldn't be too hard to implement them. If I do get them working for 3.0, anybody interested ? BTW, I should warn some people that my implementation of FSplit doesn't behave the same way that the TP 5.0 version does. Mine treats the forward-slash ('/') the same way that it treats the backward-slash ('\') character and doesn't change them. The TP 5.0 version will cause a backward-slash to appear after each occurrance of a forward-slash character. I didn't discover this until I noticed that a program using the FSplit function worked when compiled under TP 4.0 but not under TP 5.0. I don't know if the same thing happens in TP 5.5. //-n-\\ Naoto Kimura _____---=======---_____ (abcscnuk@csuna.csun.edu) ====____\ /.. ..\ /____==== // ---\__O__/--- \\ Enterprise... Surrender or we'll \_\ /_/ send back your *&^$% tribbles !!