How would I go about creating a filename with invalid characters such as :?> ?












11















I need to do create a file with a filename such as :>?, is this possible somehow? Windows stops it.










share|improve this question




















  • 5





    Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

    – DMA57361
    Sep 11 '10 at 18:04











  • @DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

    – Synetech
    Nov 30 '13 at 21:49











  • @moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

    – Synetech
    Nov 30 '13 at 21:51






  • 2





    Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

    – Synetech
    Dec 7 '13 at 5:30











  • "I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

    – Jim Balter
    Feb 19 '17 at 3:20
















11















I need to do create a file with a filename such as :>?, is this possible somehow? Windows stops it.










share|improve this question




















  • 5





    Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

    – DMA57361
    Sep 11 '10 at 18:04











  • @DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

    – Synetech
    Nov 30 '13 at 21:49











  • @moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

    – Synetech
    Nov 30 '13 at 21:51






  • 2





    Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

    – Synetech
    Dec 7 '13 at 5:30











  • "I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

    – Jim Balter
    Feb 19 '17 at 3:20














11












11








11


4






I need to do create a file with a filename such as :>?, is this possible somehow? Windows stops it.










share|improve this question
















I need to do create a file with a filename such as :>?, is this possible somehow? Windows stops it.







filenames






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 28 '14 at 16:58









Jens Erat

12.6k114459




12.6k114459










asked Sep 11 '10 at 17:57









moorecatsmoorecats

59113




59113








  • 5





    Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

    – DMA57361
    Sep 11 '10 at 18:04











  • @DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

    – Synetech
    Nov 30 '13 at 21:49











  • @moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

    – Synetech
    Nov 30 '13 at 21:51






  • 2





    Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

    – Synetech
    Dec 7 '13 at 5:30











  • "I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

    – Jim Balter
    Feb 19 '17 at 3:20














  • 5





    Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

    – DMA57361
    Sep 11 '10 at 18:04











  • @DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

    – Synetech
    Nov 30 '13 at 21:49











  • @moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

    – Synetech
    Nov 30 '13 at 21:51






  • 2





    Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

    – Synetech
    Dec 7 '13 at 5:30











  • "I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

    – Jim Balter
    Feb 19 '17 at 3:20








5




5





Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

– DMA57361
Sep 11 '10 at 18:04





Well each restricted character has another meaning or usage, so if a file or folder name did contain them it could cause Bad Things™ to happen. Mind if I ask why you are trying to do this?

– DMA57361
Sep 11 '10 at 18:04













@DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

– Synetech
Nov 30 '13 at 21:49





@DMA57361, when I did this a few years ago, I was testing some things. If I recall correctly, the results were amusing but I don’t recally anything specifically bad happening. At most, I was simply unable to access them. (Though I suppose it could cause trouble if for example, you happened to have files named a, b, and a>b and tried to view the last file as using type a>b. Oops.)

– Synetech
Nov 30 '13 at 21:49













@moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

– Synetech
Nov 30 '13 at 21:51





@moorecast, when I did this a few years ago, I made the files/directories with dummy names, then used a disk-editor to manually set the names in the directory entries directly. Of course that was on a FAT32 volume, so it was very easy. It would be a little harder on an NTFS volume.

– Synetech
Nov 30 '13 at 21:51




2




2





Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

– Synetech
Dec 7 '13 at 5:30





Mind if I ask why you are trying to do this? Maybe to implement a (poor) copy-protection?

– Synetech
Dec 7 '13 at 5:30













"I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

– Jim Balter
Feb 19 '17 at 3:20





"I need to do create a file with a filename such as :>?" -- I doubt that you need to do that.

– Jim Balter
Feb 19 '17 at 3:20










5 Answers
5






active

oldest

votes


















12














Unfortunately, you cannot use the reserved characters when creating folders or files due to them being part of system functions.



What I recommend you do is look through the Character Map application - You can go to run and type charmap.



from here, you may be able to find alternate symbols that look the same, for example:



(copy and paste these, you will see that they are different)



Instead of forward slash / - you can use a division symbol



Instead of Colon : - you can use the modifier letter colon



and so on!



alt text






share|improve this answer


























  • Making it even harder to delete! :-)

    – Arjan
    Sep 11 '10 at 18:29






  • 3





    @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

    – William Hilsum
    Sep 11 '10 at 18:49






  • 4





    / is a slash - not a backslash

    – Dennis Williamson
    Sep 11 '10 at 19:12











  • @Dennis Williamson, thanks, edited.

    – William Hilsum
    Sep 11 '10 at 19:44






  • 1





    I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

    – Synetech
    Nov 30 '13 at 22:00



















5














You can boot from a Linux disk (such as Knoppix), and mount the NTFS partition.



Linux has much less restrictions on files names, and will let you create such names (I have tried it).






share|improve this answer































    5














    Some operating systems prohibit some particular characters from appearing in file names: (Resource from Wikipedia)



    / slash used as a path name component separator in Unix-like, Windows, and Amiga systems. (The MS-DOS command.com shell would consume it as a switch character, but Windows itself always accepts it as a separator[2][vague])



    backslash Also used as a path name component separator in MS-DOS, OS/2 and Windows (there is no difference between slash and backslash); allowed in Unix filename



    ? question mark used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames



    * asterisk used as a wildcard in Unix, MS-DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, later versions of MS-DOS) or any sequence of characters in either the basename or extension (thus "." in early versions of MS-DOS means "all files". Allowed in Unix filenames,



    : colon used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by "".)



    | vertical bar designates software pipelining in Unix and Windows; allowed in Unix filenames



    " quotation mark used to mark beginning and end of filenames containing spaces in Windows



    < less than used to redirect input, allowed in Unix filenames



    > greater than used to redirect output, allowed in Unix filenames



    . period allowed but the last occurrence will be interpreted to be the extension separator in VMS, MS-DOS and Windows. In other OSes, usually considered as part of the filename, and more than one full stop may be allowed.






    share|improve this answer





















    • 2





      You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

      – hyperslug
      Sep 11 '10 at 18:28






    • 2





      The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

      – Synetech
      Nov 30 '13 at 22:10



















    2














    The only way is to manually edit the hard drive using a program like HxD. If you do this though, most likely the files won't be accessible by any program. For example, if you tried to open a file named abcdef.txt, you'd get a message that the directory abc doesn't exist.






    share|improve this answer
























    • +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

      – Synetech
      Nov 30 '13 at 22:05



















    2














    You can install the Subsystem for Unix Applications if you're on Ultimate or Enterprise. From there you can create such names.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f187469%2fhow-would-i-go-about-creating-a-filename-with-invalid-characters-such-as%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      12














      Unfortunately, you cannot use the reserved characters when creating folders or files due to them being part of system functions.



      What I recommend you do is look through the Character Map application - You can go to run and type charmap.



      from here, you may be able to find alternate symbols that look the same, for example:



      (copy and paste these, you will see that they are different)



      Instead of forward slash / - you can use a division symbol



      Instead of Colon : - you can use the modifier letter colon



      and so on!



      alt text






      share|improve this answer


























      • Making it even harder to delete! :-)

        – Arjan
        Sep 11 '10 at 18:29






      • 3





        @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

        – William Hilsum
        Sep 11 '10 at 18:49






      • 4





        / is a slash - not a backslash

        – Dennis Williamson
        Sep 11 '10 at 19:12











      • @Dennis Williamson, thanks, edited.

        – William Hilsum
        Sep 11 '10 at 19:44






      • 1





        I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

        – Synetech
        Nov 30 '13 at 22:00
















      12














      Unfortunately, you cannot use the reserved characters when creating folders or files due to them being part of system functions.



      What I recommend you do is look through the Character Map application - You can go to run and type charmap.



      from here, you may be able to find alternate symbols that look the same, for example:



      (copy and paste these, you will see that they are different)



      Instead of forward slash / - you can use a division symbol



      Instead of Colon : - you can use the modifier letter colon



      and so on!



      alt text






      share|improve this answer


























      • Making it even harder to delete! :-)

        – Arjan
        Sep 11 '10 at 18:29






      • 3





        @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

        – William Hilsum
        Sep 11 '10 at 18:49






      • 4





        / is a slash - not a backslash

        – Dennis Williamson
        Sep 11 '10 at 19:12











      • @Dennis Williamson, thanks, edited.

        – William Hilsum
        Sep 11 '10 at 19:44






      • 1





        I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

        – Synetech
        Nov 30 '13 at 22:00














      12












      12








      12







      Unfortunately, you cannot use the reserved characters when creating folders or files due to them being part of system functions.



      What I recommend you do is look through the Character Map application - You can go to run and type charmap.



      from here, you may be able to find alternate symbols that look the same, for example:



      (copy and paste these, you will see that they are different)



      Instead of forward slash / - you can use a division symbol



      Instead of Colon : - you can use the modifier letter colon



      and so on!



      alt text






      share|improve this answer















      Unfortunately, you cannot use the reserved characters when creating folders or files due to them being part of system functions.



      What I recommend you do is look through the Character Map application - You can go to run and type charmap.



      from here, you may be able to find alternate symbols that look the same, for example:



      (copy and paste these, you will see that they are different)



      Instead of forward slash / - you can use a division symbol



      Instead of Colon : - you can use the modifier letter colon



      and so on!



      alt text







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 30 '13 at 21:29









      kinokijuf

      6,70284487




      6,70284487










      answered Sep 11 '10 at 18:23









      William HilsumWilliam Hilsum

      108k16159253




      108k16159253













      • Making it even harder to delete! :-)

        – Arjan
        Sep 11 '10 at 18:29






      • 3





        @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

        – William Hilsum
        Sep 11 '10 at 18:49






      • 4





        / is a slash - not a backslash

        – Dennis Williamson
        Sep 11 '10 at 19:12











      • @Dennis Williamson, thanks, edited.

        – William Hilsum
        Sep 11 '10 at 19:44






      • 1





        I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

        – Synetech
        Nov 30 '13 at 22:00



















      • Making it even harder to delete! :-)

        – Arjan
        Sep 11 '10 at 18:29






      • 3





        @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

        – William Hilsum
        Sep 11 '10 at 18:49






      • 4





        / is a slash - not a backslash

        – Dennis Williamson
        Sep 11 '10 at 19:12











      • @Dennis Williamson, thanks, edited.

        – William Hilsum
        Sep 11 '10 at 19:44






      • 1





        I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

        – Synetech
        Nov 30 '13 at 22:00

















      Making it even harder to delete! :-)

      – Arjan
      Sep 11 '10 at 18:29





      Making it even harder to delete! :-)

      – Arjan
      Sep 11 '10 at 18:29




      3




      3





      @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

      – William Hilsum
      Sep 11 '10 at 18:49





      @Arjan - only via command prompt.. even then you can use the tab key for autocomplete.

      – William Hilsum
      Sep 11 '10 at 18:49




      4




      4





      / is a slash - not a backslash

      – Dennis Williamson
      Sep 11 '10 at 19:12





      / is a slash - not a backslash

      – Dennis Williamson
      Sep 11 '10 at 19:12













      @Dennis Williamson, thanks, edited.

      – William Hilsum
      Sep 11 '10 at 19:44





      @Dennis Williamson, thanks, edited.

      – William Hilsum
      Sep 11 '10 at 19:44




      1




      1





      I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

      – Synetech
      Nov 30 '13 at 22:00





      I used to use this trick for certain situations like when I need to put a question in a filename (why oh why did Microsoft make the question mark reserved‽ ఠ_ఠ) Unfortunately, I had to stop using any non-ASCII characters because they cause problems with things like defrag programs which for some reason seem to be unable to move files that have Unicode characters in their names. ಠ~ಠ

      – Synetech
      Nov 30 '13 at 22:00













      5














      You can boot from a Linux disk (such as Knoppix), and mount the NTFS partition.



      Linux has much less restrictions on files names, and will let you create such names (I have tried it).






      share|improve this answer




























        5














        You can boot from a Linux disk (such as Knoppix), and mount the NTFS partition.



        Linux has much less restrictions on files names, and will let you create such names (I have tried it).






        share|improve this answer


























          5












          5








          5







          You can boot from a Linux disk (such as Knoppix), and mount the NTFS partition.



          Linux has much less restrictions on files names, and will let you create such names (I have tried it).






          share|improve this answer













          You can boot from a Linux disk (such as Knoppix), and mount the NTFS partition.



          Linux has much less restrictions on files names, and will let you create such names (I have tried it).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 11 '10 at 21:06









          sleskesleske

          17.9k85382




          17.9k85382























              5














              Some operating systems prohibit some particular characters from appearing in file names: (Resource from Wikipedia)



              / slash used as a path name component separator in Unix-like, Windows, and Amiga systems. (The MS-DOS command.com shell would consume it as a switch character, but Windows itself always accepts it as a separator[2][vague])



              backslash Also used as a path name component separator in MS-DOS, OS/2 and Windows (there is no difference between slash and backslash); allowed in Unix filename



              ? question mark used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames



              * asterisk used as a wildcard in Unix, MS-DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, later versions of MS-DOS) or any sequence of characters in either the basename or extension (thus "." in early versions of MS-DOS means "all files". Allowed in Unix filenames,



              : colon used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by "".)



              | vertical bar designates software pipelining in Unix and Windows; allowed in Unix filenames



              " quotation mark used to mark beginning and end of filenames containing spaces in Windows



              < less than used to redirect input, allowed in Unix filenames



              > greater than used to redirect output, allowed in Unix filenames



              . period allowed but the last occurrence will be interpreted to be the extension separator in VMS, MS-DOS and Windows. In other OSes, usually considered as part of the filename, and more than one full stop may be allowed.






              share|improve this answer





















              • 2





                You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

                – hyperslug
                Sep 11 '10 at 18:28






              • 2





                The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

                – Synetech
                Nov 30 '13 at 22:10
















              5














              Some operating systems prohibit some particular characters from appearing in file names: (Resource from Wikipedia)



              / slash used as a path name component separator in Unix-like, Windows, and Amiga systems. (The MS-DOS command.com shell would consume it as a switch character, but Windows itself always accepts it as a separator[2][vague])



              backslash Also used as a path name component separator in MS-DOS, OS/2 and Windows (there is no difference between slash and backslash); allowed in Unix filename



              ? question mark used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames



              * asterisk used as a wildcard in Unix, MS-DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, later versions of MS-DOS) or any sequence of characters in either the basename or extension (thus "." in early versions of MS-DOS means "all files". Allowed in Unix filenames,



              : colon used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by "".)



              | vertical bar designates software pipelining in Unix and Windows; allowed in Unix filenames



              " quotation mark used to mark beginning and end of filenames containing spaces in Windows



              < less than used to redirect input, allowed in Unix filenames



              > greater than used to redirect output, allowed in Unix filenames



              . period allowed but the last occurrence will be interpreted to be the extension separator in VMS, MS-DOS and Windows. In other OSes, usually considered as part of the filename, and more than one full stop may be allowed.






              share|improve this answer





















              • 2





                You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

                – hyperslug
                Sep 11 '10 at 18:28






              • 2





                The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

                – Synetech
                Nov 30 '13 at 22:10














              5












              5








              5







              Some operating systems prohibit some particular characters from appearing in file names: (Resource from Wikipedia)



              / slash used as a path name component separator in Unix-like, Windows, and Amiga systems. (The MS-DOS command.com shell would consume it as a switch character, but Windows itself always accepts it as a separator[2][vague])



              backslash Also used as a path name component separator in MS-DOS, OS/2 and Windows (there is no difference between slash and backslash); allowed in Unix filename



              ? question mark used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames



              * asterisk used as a wildcard in Unix, MS-DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, later versions of MS-DOS) or any sequence of characters in either the basename or extension (thus "." in early versions of MS-DOS means "all files". Allowed in Unix filenames,



              : colon used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by "".)



              | vertical bar designates software pipelining in Unix and Windows; allowed in Unix filenames



              " quotation mark used to mark beginning and end of filenames containing spaces in Windows



              < less than used to redirect input, allowed in Unix filenames



              > greater than used to redirect output, allowed in Unix filenames



              . period allowed but the last occurrence will be interpreted to be the extension separator in VMS, MS-DOS and Windows. In other OSes, usually considered as part of the filename, and more than one full stop may be allowed.






              share|improve this answer















              Some operating systems prohibit some particular characters from appearing in file names: (Resource from Wikipedia)



              / slash used as a path name component separator in Unix-like, Windows, and Amiga systems. (The MS-DOS command.com shell would consume it as a switch character, but Windows itself always accepts it as a separator[2][vague])



              backslash Also used as a path name component separator in MS-DOS, OS/2 and Windows (there is no difference between slash and backslash); allowed in Unix filename



              ? question mark used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames



              * asterisk used as a wildcard in Unix, MS-DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, later versions of MS-DOS) or any sequence of characters in either the basename or extension (thus "." in early versions of MS-DOS means "all files". Allowed in Unix filenames,



              : colon used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by "".)



              | vertical bar designates software pipelining in Unix and Windows; allowed in Unix filenames



              " quotation mark used to mark beginning and end of filenames containing spaces in Windows



              < less than used to redirect input, allowed in Unix filenames



              > greater than used to redirect output, allowed in Unix filenames



              . period allowed but the last occurrence will be interpreted to be the extension separator in VMS, MS-DOS and Windows. In other OSes, usually considered as part of the filename, and more than one full stop may be allowed.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 30 '13 at 21:30









              kinokijuf

              6,70284487




              6,70284487










              answered Sep 11 '10 at 18:17









              subankisubanki

              5,93173246




              5,93173246








              • 2





                You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

                – hyperslug
                Sep 11 '10 at 18:28






              • 2





                The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

                – Synetech
                Nov 30 '13 at 22:10














              • 2





                You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

                – hyperslug
                Sep 11 '10 at 18:28






              • 2





                The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

                – Synetech
                Nov 30 '13 at 22:10








              2




              2





              You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

              – hyperslug
              Sep 11 '10 at 18:28





              You can safely dial down the <bold> hyperbole: it is possible to import files with illegal characters, superuser.com/questions/31587.

              – hyperslug
              Sep 11 '10 at 18:28




              2




              2





              The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

              – Synetech
              Nov 30 '13 at 22:10





              The question isn’t why can’t I use some characters in filenames; it is how can I force the use of reserved characters. As such, this answer is an answer to a different question. At most, this should be a comment with a link to the Wikipedia article.

              – Synetech
              Nov 30 '13 at 22:10











              2














              The only way is to manually edit the hard drive using a program like HxD. If you do this though, most likely the files won't be accessible by any program. For example, if you tried to open a file named abcdef.txt, you'd get a message that the directory abc doesn't exist.






              share|improve this answer
























              • +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

                – Synetech
                Nov 30 '13 at 22:05
















              2














              The only way is to manually edit the hard drive using a program like HxD. If you do this though, most likely the files won't be accessible by any program. For example, if you tried to open a file named abcdef.txt, you'd get a message that the directory abc doesn't exist.






              share|improve this answer
























              • +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

                – Synetech
                Nov 30 '13 at 22:05














              2












              2








              2







              The only way is to manually edit the hard drive using a program like HxD. If you do this though, most likely the files won't be accessible by any program. For example, if you tried to open a file named abcdef.txt, you'd get a message that the directory abc doesn't exist.






              share|improve this answer













              The only way is to manually edit the hard drive using a program like HxD. If you do this though, most likely the files won't be accessible by any program. For example, if you tried to open a file named abcdef.txt, you'd get a message that the directory abc doesn't exist.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 11 '10 at 18:22









              zildjohn01zildjohn01

              1,73241725




              1,73241725













              • +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

                – Synetech
                Nov 30 '13 at 22:05



















              • +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

                – Synetech
                Nov 30 '13 at 22:05

















              +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

              – Synetech
              Nov 30 '13 at 22:05





              +1 This is how I did a while back. I was easily able to use every single reserved character by directly editing the FAT directory entries. (It’s also possible in NTFS, but slightly more involved.)

              – Synetech
              Nov 30 '13 at 22:05











              2














              You can install the Subsystem for Unix Applications if you're on Ultimate or Enterprise. From there you can create such names.






              share|improve this answer




























                2














                You can install the Subsystem for Unix Applications if you're on Ultimate or Enterprise. From there you can create such names.






                share|improve this answer


























                  2












                  2








                  2







                  You can install the Subsystem for Unix Applications if you're on Ultimate or Enterprise. From there you can create such names.






                  share|improve this answer













                  You can install the Subsystem for Unix Applications if you're on Ultimate or Enterprise. From there you can create such names.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 21 '11 at 22:48









                  JoeyJoey

                  33.1k987118




                  33.1k987118






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f187469%2fhow-would-i-go-about-creating-a-filename-with-invalid-characters-such-as%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido