Two servers are there say A & B. Both are in different VLAN. I can ping the server in both direction but I can open the shared folder through run command (\\ServerA\shareddrive). The switch having an ACL to permit only RDP and SQL traffic from Server B to A.
Please let me know which I have to enable to open the server through explorer.
I would sniff the traffic and see what protocols it uses. If you want to go ahead and try the access list without sniffing first, try UDP/135, UDP/137, UDP/138, TCP/138 and TCP/455.
Then try a permit ip any any log at the end - that will tell you if you have missed anything.