Can any one tell me how to protect the folder with password
What folder? Did you mean protect "a" folder?
In XP, right-click the folder that you want to make private and choose "Properties" (or Alt+Double-click). Go to the "Sharing" tab and check the "Make this folder private" box. Follow instructions.