How to create a drive and share it?

 How to create a drive and share it.

1.       Create a folder in pc2 (hostname is sales-arjun-pc).  Like public, sales, marketing

a.       Select the folder which you want to share like public

b.       Right click and properties>sharing tab> Click on share button>share

C. Now go to PC1 command prompt

  • Type below command 

    • C:\User\Admin> net use p: \\ sales-arjun-pc\public

    • It will create a sales folder inside the PC1 computer like below.


If you want to create another drive, you can follow same steps 

Again PC2’s folder drive create inside the PC1  

This time we are going to create next drive marketing

Note: This time Change the drive name M: for marketing folder

 C:\Users\Admin>net use M: \\sales-arjun-pc\marketing

           Syntax:   C:\>net use [drive name:] share pc name like pc2 and enter.

Creating sales drive s: in below

Type this command in command prompt:  C:\Users\Admin>net use s: \\sales-arjun-pc\sales

 We can create all drives (in PC2) in same time in PC1, follow below rules:

  1. Share all drives from PC2.

  2. Open notepad in PC1 and type below commands.

    1.  C:\Users\Admin>net use M: \\sales-arjun-pc\marketing

    2.  C:\Users\Admin>net use S: \\sales-arjun-pc\sales

    3.  C:\Users\Admin>net use P: \\sales-arjun-pc\public

  3. Save it in myDrives.bat extension 

  4. Now double click that file, it will automatically create all drives in your pc1. Like the image below.


Comments

Popular posts from this blog

Site to Site VPN Configuration in SonicWall Router:

How to reduce the size of your .OST file?

If a client legal team requested all email and share point files from the past 6 months to present some specific project, can you tell me what kind of tools that you use to deliver that request?