Issue: Problems Mapping Centerbase as Network Drive
Windows can be very finicky when mapping network drives using internet locations. This is the case when using the Centerbase mapped drive feature to map your database to windows explorer. The issue often arises that Windows will not pass the password to Centerbase, and you receive either bad password messages, or a message similar to below.
Solution: Create a batch file that maps Centerbase whenever the user logs into the PC.
Using the 'old school' net use command seems to get around all of these issues! Follow the procedure below to create a batch file to auto map your drive on Windows login.
Create a new text file, and paste the following into it.
net use I: https://XX.centerbase.com/filesystem YourPassword /user:"User Name" /persistent:no
Essentially, copy this exact text as shown above, and replace the following with your information
- For the part net use I: substitute whatever drive letter you want to use for the mapped drive instead of I
- Enter your Centerbase URL in the exact format show, except substitute your portion for the XX.
- Enter your Centerbase password and do NOT put in quotes, as shown
- Place your user name for Centerbase were User Name is show. Leave in quotes.
- The persistent:no portion is very important, so that Windows does not attempt to save your Centerbase password each time. That is one of the main issues mapping the drives, is that even though Windows thinks it save your credential, another part of the Windows OS refuses to pass those to an Internet mapped drive location!
So for example the string would look as follows for the following site:
site URL: myfirm.centerbase.com
user: Jack Sprat
Drive to map: G
net use G: https://myfirm.centerbase.com/filesystem EatnoFat /user:"Jack Sprat" /persistent:no
Make sure you get all the spaces exactly as above, that is why is would be best to copy the example and substitute your exact text as needed.
Save the file as 'cbstartup.bat' and place anywhere on your hard drive where it won't accidentally get deleted. Make sure the file name is similar as above, and not saved as a txt file.
The next step is to create a short cut to this batch file, and place into the Windows startup folder for the current user. From wherever you created the file, right click on it, and choose 'Create Shortcut'.
This creates a shortcut file.
Next, copy this new shortcut file, into the Windows startup directory for the current user. In Windows 10, this location is shown below. You can either paste the link below directly into Windows explorer, or browse to the location (requires enabling viewing of hidden files). Substitute current user name for [Username]
Another option to navigate to this startup folder is to open the Run dialog and type shell:startup. This will open the Windows startup folder.
Lastly, once in the startup folder, PASTE the shortcut link you copied earlier.
Simply restart the computer, and your Centerbase drive should now map each time you log into your computer.