Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to get name of startup disk in Terminal/Java (without carbon)

How to get name of startup disk in Terminal/Java (without carbon)
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2001
Location: Germany
Status: Offline
Reply With Quote
Aug 24, 2001, 03:37 AM
 
Hello dear developer community,

i am porting some code to pure java / cocoa java, and doing so i got the problem to get the name of the root device (under Unix the Name would be "/" whereby the name of the other Volumes is easily to get under /Volumes/*)
So how to get the name using terminal or pure java, or at least cocoa (java) ?

TIA

Holger
     
Dedicated MacNNer
Join Date: Aug 2001
Status: Offline
Reply With Quote
Aug 25, 2001, 03:51 PM
 
root is also / under in OS X.
--
Mohammad A. Haque
http://www.haque.net/
mhaque|haque.net
     
links2u  (op)
Fresh-Faced Recruit
Join Date: Jul 2001
Location: Germany
Status: Offline
Reply With Quote
Aug 28, 2001, 05:18 AM
 
Originally posted by BatmanPPC:
<STRONG>root is also / under in OS X.</STRONG>
Thanks for reply, but i knew that already, but i seem to have expressed myself not to clearly:

I mean the Finder Name of the StartUp Volume !
something like the Carbon FindFolder would do this, but it is not easy to call Carbon code from java.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2