Forward slash (/) differs from backslash (\)

Source: Internet
Author: User

Forward slash, symbol is "/", backslash, symbol is "\".

have been very puzzled what is the difference between a forward slash and a backslash? After a period of understanding, it is concluded that

DOS Path:
E:\ Development Data \asp. NET Advanced Development ... This is the backslash, followed by the file name.
Csc/t:library/r:system.web.dll/out:d:\customhandler.dll D:\CustomerHandler.cs ... This is the argument that the forward slash is followed by a name order dir is the command.

Windows system:
Backslash \, used in Windows system to represent the directory.
Forward slash/, URL, url address. eg:http://www.cnblogs.com/zuoguanglin/

In asp:
".. /"represents the parent directory of the current directory;
"/" means the root directory of the website;

In addition: A lot of people like to use "E:\test.cs" when getting the file path, and an escape character error occurs at this time
Solution: @ "E:\test.cs"

Also attached: C # in \ is an escape character
Some of the common ones are as follows:
Escape character meaning
\ ' Single quotation mark
\ "Double quotation marks
\ \ counter Slash
Air
\a Warning
\b Backspace
\f Page Change
\ nthe line break
\ r Enter
\ t Horizontal tab
\v Vertical Tab

Forward slash (/) differs from backslash (\)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.