How Do You Install File & Printer Sharing From Command Line?
Although most users are only familiar with the graphical Windows interface, there is a way to control your computer through the command line. This is useful, for instance, if you want to write login or batch scripts to automate processes. Installing file and printer sharing from the command line is a quick and simple way to let computers on networks share resources. Log into the machine where the files you want to share are located. Locate the directory that you want to share across the network. In this example, we’ll use the directory “c:\Documents.” Open up a command prompt. Go to “Start–>Run.” In the “Run” box, type “cmd.exe” (no quotes). In Vista, go to “Start” and enter “cmd.exe” into the “Start Search” box. Pick a name for your shared directory. In this example, we’ll call it “SharedDocuments.” Type in “net share SharedDocuments=c:\Documents” at the command prompt. Test the share by opening up the “Network” window and browsing the local network. You should be able to see the sha