home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!dziuxsolim.rutgers.edu!gandalf.rutgers.edu!rgonzal
- From: rgonzal@gandalf.rutgers.edu (Ralph Gonzalez)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Quick Quickbasic Question (Q)
- Message-ID: <Aug.17.10.44.30.1992.10444@gandalf.rutgers.edu>
- Date: 17 Aug 92 14:44:30 GMT
- References: <92226.163239MASONS1@vm.utcs.utoronto.ca>
- Organization: Rutgers Univ., New Brunswick, N.J.
- Lines: 20
-
- MASONS1@vm.utcs.utoronto.ca writes:
-
- >Greetings ,
- > I have been asked to maintain a QuickBasic program ,as such I need to
- >determine the volume name from which the application was launched. Is there a
- >system() function or some other method to achieve this? All thoughts invited!
- >Cheers!
-
- According to an addendum to my QB manual, system(7) returns the
- file reference number of the application resource fork in a compiled
- application. The GetPathName subprogram (included in one of the QB
- demo programs) then returns the program's full path name. Then you can
- use LEFT$ to get the volume name...
-
- -Ralph
-
- --
- Ralph Gonzalez, Computer Science, Rutgers Univ., Camden, NJ
- Phone: (609) 757-6122; Internet: rgonzal@elbereth.rutgers.edu
- --
-