Saturday, May 17, 2003

Finding the Windows/Mac OS directory


Did you ever want to find where Windows was installed? Or where the current active Mac OS was installed? Did you parse it out of RecordsLocation? Well if so, from Authorware 6.5 this may no longer work. But fear not! There is a simpler way. The FileIO Xtra has a simple function that does this for you. From the function description:-

getOSDirectory() -- returns the full path to the Mac System Folder or Windows Directory

So all you need to do is call getOSDirectory

OSpath:=getOSDirectory()

Need more tips like this? Then you should bookmark the Authorware-Amy.Com tips pages. Even better - if you subscribe to the Tip Of The Week newsletter you can keep up to date will ALL of Amy's tips as they are published.

No comments: