Connectors : Default Connectors : Files Connector : Mount Drive at Service Startup
 
Mount Drive at Service Startup
For easier access, you may need to mount a specific drive automatically each time the Exalead CloudView service starts.
1. Create a .BAT file specifying the drive to mount.
Example:
@echo off
net use /PERSISTENT:NO x: \\SERVER_NAME\MOUNT_POINT
rem we execute exit /b 0 so that the return code is 0 even if the net
use failed (e.g. already mounted drive)
rem you may have a more advanced error handling but the error code
will have no impact on CloudView.
exit /B 0
2. Edit the DeploymentInternal.xml file located in <DATADIR>/config.
3. To indicate the path to your .BAT file, add the following lines to ProcessInternalConfig xmlns="exa:exa.bee.deploy.v10" name="connectors.*":
<StringValue xmlns="exa:exa.bee"
value="-Dcom.exalead.bee.Queen.preStartHookProcess=PATH_TO_BAT_FILE.bat"/>
Note: You can define PATH_TO_BAT_FILE.bat with placeholders like ${dataDir}, ${runDir}, ${configDir}, or ${installDir}.