Sharing your folder will allow other users on the network to view, download and edit the folder's content. While you can share access to the folder from the GUI using File Explorer, it's also possible to do it from the command prompt.
You can share access to a folder through the network using the net share command. The command requires the command prompt to run as Administrator user.
Related: How to share folder in Windows
Steps to create shared folder from command prompt in Windows 11:
- Launch Command Prompt as administrator.
- Create folder if not already exist.
C:\>mkdir shared
- Share folder using net command.
C:\>net share mysharedfolder=c:\shared mysharedfolder was shared successfully.
- Check if folder is in shares list.
C:\>net share Share name Resource Remark ------------------------------------------------------------------------------- C$ C:\ Default share IPC$ Remote IPC ADMIN$ C:\WINDOWS Remote Admin mysharedfolder c:\shared The command completed successfully.
- Remove shared folder once no longer needed.
C:\>net share /delete mysharedfolder mysharedfolder was deleted successfully.
Author: Mohd
Shakir Zakaria
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Discuss the article:
Comment anonymously. Login not required.