how to transfer file with my friend laptop in different network using cmd??
None using the command prompt. On different networks your best bet is a sneaknet -- i.e. a USB stick and a pair of tennis shoes to run between machines. If you want to actually connect the two networks that is a different issue.