Tue
27
Feb '07
I saw most of the developers confused with both ’slashes’. Here is a small reference:
/ - Used in URLs
- Used as a “switch” identifier. Mostly used in command prompts.
Eg: DIR /P - Here /P is the switch for page-wize listing.
\ - Used in paths
Eg: C:\WINDOWS\SYSTEM32 - Local path
Eg: \MYCOMPUTER\FOLDER UNC path. (which represents a ’shared’ folder of a computer in the same LAN
/ - Used in URLs
- Used as a “switch” identifier. Mostly used in command prompts.
Eg: DIR /P - Here /P is the switch for page-wize listing.
\ - Used in paths
Eg: C:\WINDOWS\SYSTEM32 - Local path
Eg: \MYCOMPUTER\FOLDER UNC path. (which represents a ’shared’ folder of a computer in the same LAN

Leave a passing comment »