{"video_id":"fp_55VW3Ur1v1","title":"TQ: What Windows Says You CAN'T Do","channel":"Techquickie","show":"Techquickie","published_at":"2020-12-22T18:00:00.057Z","duration_s":205,"segments":[{"start_s":0.0,"end_s":4.5600000000000005,"text":"If, like most of us, you use Windows, at some point you've probably gotten a notification","speaker":null,"is_sponsor":0},{"start_s":4.5600000000000005,"end_s":9.92,"text":"that looks like this, telling you that you can't use certain characters in a filename.","speaker":null,"is_sponsor":0},{"start_s":9.92,"end_s":17.08,"text":"But why? I mean, quotes and question marks are common enough in everyday use, so why can't I just","speaker":null,"is_sponsor":0},{"start_s":17.08,"end_s":23.28,"text":"put them in the friggin' file and what the heck is going on? Is Microsoft just trying to play mind games with us, or do they actually have a good reason?","speaker":null,"is_sponsor":0},{"start_s":23.28,"end_s":29.24,"text":"It turns out, these restrictions are due to how the operating system itself reads filenames.","speaker":null,"is_sponsor":0},{"start_s":29.24,"end_s":33.88,"text":"You see, Windows uses certain characters to denote certain actions the operating system","speaker":null,"is_sponsor":0},{"start_s":33.88,"end_s":41.2,"text":"needs to follow when it's working with a file. You're probably familiar with how backslash precedes the name of a subfolder, and as such,","speaker":null,"is_sponsor":0},{"start_s":41.2,"end_s":45.24,"text":"you cannot put a backslash in the filename, since otherwise Windows would confuse the","speaker":null,"is_sponsor":0},{"start_s":45.24,"end_s":48.84,"text":"filename for another folder that isn't even there.","speaker":null,"is_sponsor":0},{"start_s":48.84,"end_s":54.44,"text":"Similarly, you can't use a colon, since Windows understands a colon to denote a drive letter,","speaker":null,"is_sponsor":0},{"start_s":54.44,"end_s":59.58,"text":"which comes at the beginning of a file path to tell Windows what drive to begin looking","speaker":null,"is_sponsor":0},{"start_s":59.58,"end_s":62.6,"text":"for the file on. What about forward slash?","speaker":null,"is_sponsor":0},{"start_s":62.6,"end_s":66.08,"text":"Well, these can still be used to point to certain resources.","speaker":null,"is_sponsor":0},{"start_s":66.08,"end_s":70.52,"text":"Think about how you can have a shortcut on your desktop to a certain web page that uses","speaker":null,"is_sponsor":0},{"start_s":70.52,"end_s":77.68,"text":"forward slashes in the URL. The question mark, ironically, has the potential to cause Windows some confusion as well.","speaker":null,"is_sponsor":0},{"start_s":77.68,"end_s":81.68,"text":"You can actually use it as a wildcard of sorts when you run a search.","speaker":null,"is_sponsor":0},{"start_s":81.68,"end_s":87.52,"text":"For example, if you want to find all the files that match most of a certain filename, you","speaker":null,"is_sponsor":0},{"start_s":87.52,"end_s":92.52,"text":"can throw in a question mark to tell Windows to return a result for any character in that","speaker":null,"is_sponsor":0},{"start_s":92.52,"end_s":97.44,"text":"space where the question mark is. So it follows that you simply can't use it in your filenames.","speaker":null,"is_sponsor":0},{"start_s":97.44,"end_s":102.16,"text":"Oh, and the asterisk is restricted for similar reasons, as if you search for something like","speaker":null,"is_sponsor":0},{"start_s":102.16,"end_s":108.4,"text":"asterisk.png, you'll get all png files in whichever folder you're searching.","speaker":null,"is_sponsor":0},{"start_s":108.4,"end_s":112.96,"text":"Moving on, quotation marks are disallowed because Windows reserves them to indicate","speaker":null,"is_sponsor":0},{"start_s":112.96,"end_s":116.64,"text":"a full path if the path itself has a space in it.","speaker":null,"is_sponsor":0},{"start_s":116.64,"end_s":120.44,"text":"If you bring up a window shortcut, you can see that the path it's pointing to will often","speaker":null,"is_sponsor":0},{"start_s":120.44,"end_s":125.92,"text":"include quotes by default. This is especially useful if you're trying to put modifiers after the path.","speaker":null,"is_sponsor":0},{"start_s":125.92,"end_s":130.56,"text":"For example, if you're trying to force a game to run in a certain sized window, you can","speaker":null,"is_sponsor":0},{"start_s":130.56,"end_s":136.12,"text":"try putting a space after the filename, then hyphen w hyphen r followed by your desired","speaker":null,"is_sponsor":0},{"start_s":136.12,"end_s":141.88,"text":"resolution. These quotes help Windows know that the space after the filename isn't part of the path,","speaker":null,"is_sponsor":0},{"start_s":141.88,"end_s":145.72,"text":"and that you're instead trying to tell Windows to do something else.","speaker":null,"is_sponsor":0},{"start_s":145.72,"end_s":149.36,"text":"And there are other disallowed characters that you may not see unless you're using","speaker":null,"is_sponsor":0},{"start_s":149.36,"end_s":152.64,"text":"the command line instead of the typical Windows GUI.","speaker":null,"is_sponsor":0},{"start_s":152.64,"end_s":155.68,"text":"The greater and less than symbols fall into this category, for example.","speaker":null,"is_sponsor":0},{"start_s":155.68,"end_s":159.64,"text":"For the other characters and uses that we don't have time for today, I'm sure some","speaker":null,"is_sponsor":0},{"start_s":159.64,"end_s":166.0,"text":"of you can discuss those in the comments and help us out. Of course, Windows approach to this isn't always super intuitive, which is why the","speaker":null,"is_sponsor":0},{"start_s":166.04,"end_s":172.76,"text":"frustration stems to begin with. You can still use periods in a filename, even though the last period denotes the beginning","speaker":null,"is_sponsor":0},{"start_s":172.76,"end_s":178.4,"text":"of the extension, which tells Windows what kind of file it is, so that's a little inconsistent.","speaker":null,"is_sponsor":0},{"start_s":178.4,"end_s":182.6,"text":"And why can't you, for example, use a colon later on in the filename as it's typically","speaker":null,"is_sponsor":0},{"start_s":182.6,"end_s":186.6,"text":"just the first one in the path that denotes a drive letter?","speaker":null,"is_sponsor":0},{"start_s":186.6,"end_s":189.88,"text":"Sometimes characters are restricted simply to avoid confusion, and I get this, can be","speaker":null,"is_sponsor":0},{"start_s":189.88,"end_s":195.24,"text":"frustrating, but you can always substitute my personal favorite, the semicolon, right?","speaker":null,"is_sponsor":0},{"start_s":195.64,"end_s":201.04,"text":"So thanks for watching, guys. If you liked this video, give it a thumbs up, hit subscribe, and be sure to hit us up","speaker":null,"is_sponsor":0},{"start_s":201.04,"end_s":205.12,"text":"in the comments section with your suggestions for topics that we should cover in the future.","speaker":null,"is_sponsor":0}],"full_text":"If, like most of us, you use Windows, at some point you've probably gotten a notification that looks like this, telling you that you can't use certain characters in a filename. But why? I mean, quotes and question marks are common enough in everyday use, so why can't I just put them in the friggin' file and what the heck is going on? Is Microsoft just trying to play mind games with us, or do they actually have a good reason? It turns out, these restrictions are due to how the operating system itself reads filenames. You see, Windows uses certain characters to denote certain actions the operating system needs to follow when it's working with a file. You're probably familiar with how backslash precedes the name of a subfolder, and as such, you cannot put a backslash in the filename, since otherwise Windows would confuse the filename for another folder that isn't even there. Similarly, you can't use a colon, since Windows understands a colon to denote a drive letter, which comes at the beginning of a file path to tell Windows what drive to begin looking for the file on. What about forward slash? Well, these can still be used to point to certain resources. Think about how you can have a shortcut on your desktop to a certain web page that uses forward slashes in the URL. The question mark, ironically, has the potential to cause Windows some confusion as well. You can actually use it as a wildcard of sorts when you run a search. For example, if you want to find all the files that match most of a certain filename, you can throw in a question mark to tell Windows to return a result for any character in that space where the question mark is. So it follows that you simply can't use it in your filenames. Oh, and the asterisk is restricted for similar reasons, as if you search for something like asterisk.png, you'll get all png files in whichever folder you're searching. Moving on, quotation marks are disallowed because Windows reserves them to indicate a full path if the path itself has a space in it. If you bring up a window shortcut, you can see that the path it's pointing to will often include quotes by default. This is especially useful if you're trying to put modifiers after the path. For example, if you're trying to force a game to run in a certain sized window, you can try putting a space after the filename, then hyphen w hyphen r followed by your desired resolution. These quotes help Windows know that the space after the filename isn't part of the path, and that you're instead trying to tell Windows to do something else. And there are other disallowed characters that you may not see unless you're using the command line instead of the typical Windows GUI. The greater and less than symbols fall into this category, for example. For the other characters and uses that we don't have time for today, I'm sure some of you can discuss those in the comments and help us out. Of course, Windows approach to this isn't always super intuitive, which is why the frustration stems to begin with. You can still use periods in a filename, even though the last period denotes the beginning of the extension, which tells Windows what kind of file it is, so that's a little inconsistent. And why can't you, for example, use a colon later on in the filename as it's typically just the first one in the path that denotes a drive letter? Sometimes characters are restricted simply to avoid confusion, and I get this, can be frustrating, but you can always substitute my personal favorite, the semicolon, right? So thanks for watching, guys. If you liked this video, give it a thumbs up, hit subscribe, and be sure to hit us up in the comments section with your suggestions for topics that we should cover in the future."}