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

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

-
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

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 one of the undefined symbols ꞉

and so on!

-
Making it even harder to delete! :-) – Arjan Sep 11 '10 at 18:29
@Arjan - only via command prompt.. even then you can use the tab key for autocomplete. – William Hilsum Sep 11 '10 at 18:49
/ 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

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

% percent sign used as a wildcard in RT-11; marks a single character.

* 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.

-
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 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).

-

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 abc\def.txt, you'd get a message that the directory abc doesn't exist.

-

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

-