Jump to content


Automatically mount SANmp volumes upon startup (Windows XP,2k,2k3)


  • Please log in to reply
No replies to this topic

#1 Guest_Loring_*

Guest_Loring_*
  • Guests

Posted 08 July 2009 - 09:45 AM

Here is a sample Windows batch script that will login to SANmp Client, and mount volumes with the permissions specified. Substitute the USERNAME and PASSWORD with the SANmp username and password of the user you wish to login with. Substitute the VOLUMENAME and PRIVILEGE with the name of the SANmp volume you wish to mount, and the desired mount access privileges (WX, RW, RO). Copy and paste the last line to mount additional volumes.

- Copy the text below in BOLD into a plain text edtior, such as Windows Notepad
- Uncheck the box "Hide extenstions for known file types" in Windows Control Panel > Folder Options > View
- Rename the batch file with a name of your choosing and change the file extension from .txt to .bat
- Place the batch file in your Windows Startup folder (usually C:\Documents and Settings\All Users\Start Menu\Programs\Startup), and it will execute on Windows startup

@REM This is a sample batch script that will login to SANmp Client, and mount volumes with the permissions specified.
@REM Substitute the <USERNAME> and <PASSWORD> fields with the name and password of the SANmp user you wish to login with.
@REM Substitue the <VOLUMENAME> and <PRIVILEGE> with the name of the SANmp volume you wish to mount,
@REM and the desired mount access priveleges (WX, RW, RO).

@ECHO OFF
@ECHO Mounting SANmp disks...
%PROGRAMFILES%\SANmp\Client\SANmpClient.exe login <USERNAME> <PASSWORD>
%PROGRAMFILES%\SANmp\Client\SANmpClient.exe mount volume <VOLUMENAME> <PRIVILEGE>


For additional information on Windows batch files, please see the following links:

http://www.microsoft...h.mspx?mfr=true

http://en.wikipedia....wiki/Batch_file