Xref: utzoo comp.protocols.appletalk:1723 comp.sys.mac:29266 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!well!svc From: svc@well.UUCP (Leonard Rosenthol) Newsgroups: comp.protocols.appletalk,comp.sys.mac Subject: Re: Connect/Disconnect AppleShare servers from within a Program Summary: Loggin out is easy, in however... Keywords: AppleShare, servers, API Message-ID: <11172@well.UUCP> Date: 29 Mar 89 17:57:19 GMT References: <11543@ut-emx.UUCP> Lines: 21 In article <11543@ut-emx.UUCP>, xdaa374@ut-emx.UUCP (William T. Douglass) writes: > Does anyone know of a method-program-XCMD that will allow you to > connect and disconnect from an AppleShare server from within a > program (i.e. bypass the Chooser.) We want to log-in our users > automatically from within an application, and log out of the server > when the program quits. > I know of a couple of XCMD's that will mount AShare volumes, however neither is being distributed due to Apple politics (ie. 'We don't want useres doing that sort of thing...'). There is also an MPW Tool called Choose which will do the same thing (and some other nice stuff too...), though I don't know how you would call that from your application. The bottom line is that it can be done, but Apple's not going to make it easy for you :-) Unmounting on the other hand is REAL easy, just call UnmountVol like you would for any other volume and it will Unmount just fine... -- +--------------------------------------------------+ Leonard Rosenthol | GEnie : MACgician Lazerware, inc. | MacNet: MACgician UUCP: svc@well.UUCP | ALink : D0025