![]() Though even then you could go with slash because they all seem to accept it. you see an example of it, then you could start concerning yourself with how to know which to use to be compatible across windows versions. If a dash works in one windows version for a command, i'd be surprised if it didn't work in another(for that command). You'd struggle to find any example of that, I doubt it has ever happened. I don't think MS have ever rewritten a command that took dashes, to only accept slash.Īnd the idea you mention in comments, that you're worried that one implementation might differ from another in using - vs / I don't think so. With arp, the cmd help in XP and 7, and the web help, show it with dash. But either windows version accepts either. With shutdown, the cmd help depends on windows version! In XP cmd help shows shutdown -? In Win7 it shows shutdown /?. Even arp can use slash.Ĭommands that can use dash are based on *nix commands e.g. There aren't any commands in windows that only use dash. The different types of slashes here indicate whether you’re specifying an option or a directory path.īlurb source: Why Windows Uses Backslashes and Everything Else Uses Forward Slashes Most of the utilities included with DOS were written by IBM, and they used the / character as a “switch” character It’s hard to imagine today, but the original version of Microsoft DOS - that’s MS-DOS 1.0 - didn’t support directories at all when it was released in 1981. Programmers outside of MS sometimes omit allowing the use of the forward slash at all. This is one of the fundamental differences between the way the OSs are designed and used.Īnother (related) one, for example as Daniel B points out in his comment, a forward slash in *nix is for file path separators, where-as DOS/Windows uses backslashes - another fundamental difference, which enables MS to (continue to) use the forward slash as the switch character.īut it's really up to the programmer to implement how they choose, and DOS/Windows application programmers (including those who work at MS) often include the ability to use either, for ease of use by people coming from other systems, and I'm sure often due to personal preference. Officially/traditionally in practically all other OSs (for example: *nix flavors) they use a dash ( -). See backslash.Officially/traditionally in DOS/Windows the command-line switch is signified by a forward slash ( /). In Unix paths, which have become popular due to Internet addresses, the slash separates the elements of the path as in It Used to Be Just a Slashīefore computers became ubiquitous, the forward slash was simply a "slash." Since the days of DOS, which introduced the horrid backslash, many people refer to a regular slash as a forward slash to avoid confusion. For example, in the DOS/Windows Xcopy statement xcopy *.* d: /s, the /s is a switch that tells the program to copy all subfolders. The slash is also often used in command line syntax to indicate a switch. For example, 10 / 7 means 10 divided by 7. forward slashThe forward slash (or simply slash) character (/) is the divide symbol in programming and on calculator keyboards. Bangalore Part of exciting team of cloud based software solution - Zenoti fka ManageMySpa, focuses on delivering end-to-end business software for wellness industry, clinics. Bangalore Urban, Karnataka, India Cofounder /VP Sales & Bus Dev Zenoti Sep 2014 - Jul 2017 2 years 11 months. A slash is conventionally used without spaces between it and the words it connects (although it is also common to see spaces used, especially if one or both of the things being joined contain multiple words). Forward Slash Capital Jan 2019 - Present 4 years 2 months. ![]() The slash ( / )-technically known as a virgule but also called a slant, solidus, or stroke (the common name in British English)-serves a number of purposes in writing, essentially standing in for other words as a quick and clear way of showing the connection between two things.
0 Comments
Leave a Reply. |