It is also important to adopt an approach that automatically remounts the network share in case of system restarts.
This article describes the steps required to mount a shared filesystem on Windows 2008 Server.
- Launch Windows Task Scheduler
- Create a folder named 'IBM'
- Create a Basic Task
- Name: Mount DOCLINKS folder
- Trigger: When the computer starts
- Program: net
- Arguments: use X: \\[SHAREDFOLDER] /persistent:YES
Providing network credentials
If the net use command fails asking for credentials you can use the following syntax to provide them.
net use X: \\[SHAREDFOLDER] /persistent:YES [PASSWORD] /USER:[USERNAME]
Symbolic link technique
Drew Hohnstein has proposed to use the mklink command to create a symbolic link to the network folder.
A command like this should do the trick.
mklink /D C:\doclinks \\[SHAREDFOLDER]
If you can avoid to secure the shared folder you may also try this simple technique: Configure the doclink attachment folder in UNC path