I was unknown about this quick trick although i required my folder to be protected with a password since a long time.
Since shared folders are accessed on the network using the guest account, once the password for the guest account is set, a user in your workgroup or network must supply a valid username and password for the guest account to access the shared folders.
Lets get started
Password protecting a shared network folder:
- Log into Windows XP as an Administrator
- Click Start -> Control Panel -> User Accounts, then click on Guest Account and make sure it is turned on
- Now Click Start -> Run, type cmd in the box, and click Ok
- At the command prompt, type Net user guest password and press Enter
- Again, Click Start -> Control Panel -> User Accounts, then click on Guest Account
- Notice that, not you can set a password on the Guest Account. Set a Password of the Guest Account and restart your Computer
Now, when a person tires to access your shared folder, they will be prompted for a username and password to continue. Use the username "Guest" and "password" you have just set, to access the shared folders from your network.