WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change Share Path

 Keywords: Change Share Dolder Drive Path WntShareDel wntShareAdd

Question:

We have user's home folder share out on the d: drive, now we want to move all of those to the e: drive. I am looking to change the physical path of a share. The share name is still the same but the physical location need to change to a different path. Is any one know how to change the directory path of those shares in Winbatch?

Answer:

Please note that the target path of a file share cannot be altered for an existing share via the underlying Win32 API functions that the wntShare*() functions make use of in the Win32 Network Extender. That is why you have to delete the share and create a new one for the new file system location that you want to make available. See WntShareDel and wntShareAdd. Also, when you do this, if you had any customized permissions settings on the original share, those will need to be re-created on the new share.

If you want to, you can also bypass the Win32 networking functions entirely and make a direct modification to the registry that will preserve the existing share and it's permissions yet make the share point to a new location in the file system. However, it is necessary to reboot the system before the direct registry modifications will take effect.


Article ID:   W17910
Filename:   Change Share Path.txt
File Created: 2010:05:10:13:26:22
Last Updated: 2010:05:10:13:26:22