home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14085 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.1 KB

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