I've often used the Microsoft Windows NT Server 4.0 Resource Kit's Rmtshare utility in batch files to remotely share drives on computers on my network. However, Rmtshare doesn't appear in the Microsoft Windows 2000 Server Resource Kit. Has this utility disappeared?
True, the Win2K resource kits don't include Rmtshare. But the NT 4.0 version works with Win2K systems. (For more information about using Rmtshare, see Bob Chronister and Sean Daily, "Ask the Doctor," June 2000, and Mark Minasi, This Old Resource Kit, "Rmtshare," June 1999.) The code in Listing 1 shows the syntax for using Rmtshare to accomplish your task.
You can also use a GUI-based method (similar to NT Server Manager's Computer, Shared Directories option but with more capabilities). The following steps create a share on a remote system (assuming that you have the necessary rights to share resources on the target system).
- Run the Computer Management console (either right-click My Computer and select Manage, or select Administrative Tools, Computer Management).
- Right-click Computer Management (Local), click Connect to another computer, then type the name of the computer on which you want to create a share and click OK.
- In the Computer Management window, navigate to and open System Tools, Shared Folders.
- Right-click Shares, then select New File Share to launch the Create Shared Folder wizard.
- In the Folder to share text box, browse to an existing folder or enter a new name to create a new folder. For example, to create a folder named Myshare on the target computer's C drive, type
- Continue with the wizard. When prompted, set the appropriate permissions on the share.