Mount Network Drive

Does anyone have a quick script to mount a network drive without user intervention.

I did do a search, found two scripts that didn’t work they way I need them to work.

I need a script that when activated, it will put username and password in and mount the drive.

Hi,

try this line of code

mount volume “afp://myserver” as user name “myusername” with password “mypassword”

This works well for me:


	mount volume "afp://username:PASSWORD@serverIPadddress/mountpoint"