How to map Network resource using Windows OS

Many times we need to share files and other resources through Local Network. How to do that using Windows operating System?

Network cable

While working on Computer we often need to share things in between colleagues on work or maybe with our friends or family at home. How to share files and folders, or even printers on a Local Network?
Although sharing files and folders should be trivial thing in most cases it is not and people try to figure out how to share some file or how to print on a network printer. In most cases they stuck and can’t find the right way to share Network Resources bypassing problems by sending those files by Email and printing them on another Computer. Read this article and learn – How to share Network Resources using different MS Windows Operating Systems.
Today most people use Windows 7 and it is still MS OS number 1. So the question is – How to share files and folders between Windows 7 and some other MS Operating System?
I use Windows 7 Professional and I have many Computers on my Local Network at work. From this PC I’ll make some examples of how to map network drive and how to share printers attached to another Computer.
To share a Folder from another Computer first thing to do is to Share that folder on a Local Network. When folder is shared it can be used as a Network resource for reading or writing files and folders in that shared Folder.

Run Command prompt and type command


net use

confirm with Enter and you will get information about computer connections.

Net use command

In my case that list is empty and I’ll make some examples to show you how to use this command. On Host computer (Windows XP Pro SP3) I have made User account Korisnik and folder on C drive called test and shared that folder on Local Network with Read and Write permissions. To map that folder as a Hard Drive on my Computer (Windows 7 Pro) I use this command


net use X: \\KASA\test

and by confirming with Enter I have new X: drive on My Computer.

Net use and mapping network hard drive

For another example – In my Local Network I have Computer with Windows XP Professional called KASA and shared Printer Device with share name CanonMEM.

Net use mapping printer

Through the Windows services and applications this printer is already shared and it works quite good. Still, I want to make Network Connection to that printer and make my Computer to print on LPT port even it is USB printer.

To do that I need to use command prompt and net use command.


net use lpt1: \\KASA\CanonMEM

and Enter.

Net use command Win7 with password

This is what I get – just Error message – System error 5 has occurred. Here troubles starts if you don’t know what are you doing and why.
Windows 7 is more secure Windows than Windows XP and older versions and it asks from you to use Administrator rights for all crucial changes on your System. To avoid System error 5 has occurred first thing to do is to start cmd as Administrator. Notice differences on the picture above this text and picture under – C:\Users\Ivan> and C:\Windows\system32>

Net use windows 7 and printing over network

As you can see on the picture above, my command is completed successfully and I have LPT1 port to print on my Network printer. This is quite handy if you are using old MS DOS based applications which can make troubles printing on USB printers. This way you have made ‘virtual’ LPT1 port even your Computer does not have any.
If you have LPT1 port on your Computer but you are using USB printer, to avoid possible conflicts make yourself LPT2 or LPT3 port instead of LPT1.

3 thoughts on “How to map Network resource using Windows OS

  1. If you have physical LPT1 port on your machine then use LPT2 or LPT3 as virtual USB port. Otherwise print job will go on LPT1 which have no printer attached…

  2. […] On this post I have explained how to use this command in Local Network with a PC running Win 7 and o… […]

  3. Net use LPT to USB Printer

    Reply

    […] my last post I have explained how to use network resources by running cmd and calling NET USE command. Now I will wrote a bit more on that […]

Add Comment