• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining Available SMB Shares
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining Available SMB Shares


  • Subject: Re: Determining Available SMB Shares
  • From: Ryan Britton <email@hidden>
  • Date: Thu, 5 Jan 2006 07:24:08 -0800

That's what I was afraid of. You can mount an SMB server with the carbon function FSMountServerVolumeSync(), so I was hoping there was something I overlooked. Looks like I do this the hard way.


On Jan 5, 2006, at 7:18 AM, j o a r wrote:


On 5 jan 2006, at 16.05, Ryan Britton wrote:

I need to get a list of available mount points for an SMB server programmatically (the same list Finder shows you when you connect to one via Go -> Connect to Server...), but I'm not seeing anything obvious as to how to do this with either Cocoa or Carbon calls. There is a command line utility called smbutil that can do exactly what I need and can wrap it or base something off its source code if necessary, but I'm wondering if there's an easier way I'm overlooking before I do that?

You can't list shares without actually connecting to the SMB server. Neither Carbon, nor Cocoa, contains built in functionality to do that. You would have to turn to third party code, libraries or utilities for assistance.


j o a r



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Determining Available SMB Shares (From: Ryan Britton <email@hidden>)
 >Re: Determining Available SMB Shares (From: j o a r <email@hidden>)

  • Prev by Date: Re: Determining Available SMB Shares
  • Next by Date: non-closeable drawer?
  • Previous by thread: Re: Determining Available SMB Shares
  • Next by thread: non-closeable drawer?
  • Index(es):
    • Date
    • Thread