Since you are not asking to do this with NTFS, Accounts and Permissions but by "comp2 and comp3", the only (and undocumented) solution is to use a FIREWALL that can be configured to allow this from comp2/3's IP address only.
I offer no support for firewalls. That's my choice.
If you decide you want the more common solution by account, then look at that.
Bob
Hi, I am trying to setup a workgroup with 3 computers in my office where there are nearly 20 computers in a network. Its not a domain though.
I would like to share a folder from computer1 within the workgroup with read permissions for comp2 and write permission for comp3. This folder should not be accessible to the remaining 17 computers in the network.
I would like to password protect the folder when accessed from comp2 and comp3.
I have tried different methods to implement this after browsing through web articles on this issue,but with no luck.
I would appreciate if someone could provide me with a detailed procedure to implement it.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic