File names cant contain the following characters: & ? < > # { } % ~ / \. in android

It may be important to you, but you will have to let this go and find a different way to solve your problem.

These characters are not allowed by the Windows OS function calls that handle filenames.

They are specifically not allowed because they have another use:

  • \ - Reserved for use as a path separator and escape character
  • / - Reserved for use as a path separator
  • : - Reserved for use as a drive name delimiter
  • * and ? - Reserved for use as wildcard characters
  • " - Reserved for use to quote names containing spaces
  • <, > and | - Reserved for use as command redirection operators

You can, of course, create files with names containing these characters using a different operating system (as long as that operating system can read/write a Windows file system).

However, you will be unable do do anything with those files using any Windows programs and they will not understand the file names and will generate errors.

Naming Files, Paths, and Namespaces

Naming Conventions

The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:

...

Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

  • The following reserved characters:

    < (less than) > (greater than) : (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk)
  • Integer value zero, sometimes referred to as the ASCII NUL character.
  • Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more information about file streams, see File Streams.
  • Any other character that the target file system does not allow.

Source Naming Files, Paths, and Namespaces

But I really want to do this anyway.

Install cygwin and use touch.

I haven't tested all the possibilities but the following work:

touch : touch \| touch \" touch \>

Example output:

DavidPostill@Hal /f/test/impossible $ ll total 0 -rw-rw-rw-+ 1 DavidPostill None 0 Aug 10 21:03 '"' -rw-rw-rw-+ 1 DavidPostill None 0 Aug 10 21:02 : -rw-rw-rw-+ 1 DavidPostill None 0 Aug 10 21:02 '|' -rw-rw-rw-+ 1 DavidPostill None 0 Aug 10 21:07 '>'

As you can see they are not usable in Windows:

F:\test\impossible>dir Volume in drive F is Expansion Volume Serial Number is 3656-BB63 Directory of F:\test\impossible 10/08/2016 21:07 <DIR> . 10/08/2016 21:07 <DIR> .. 10/08/2016 21:03 0  10/08/2016 21:02 0  10/08/2016 21:07 0  10/08/2016 21:02 0  4 File(s) 0 bytes 2 Dir(s) 1,772,601,536,512 bytes free

File names cant contain the following characters: &  ? < > # { } % ~ / . in android

Discus and support An error saying "A file name can't contain any of the following characters" in Windows 10 Network and Sharing to solve the problem; These keeps happening even thought none of the characters outlined are in the renaming of my files that I'm trying to rename.... Discussion in 'Windows 10 Network and Sharing' started by RojilioCoronado, Feb 7, 2020.

(You must log in or sign up to reply here.)

Thema:

  1. in Windows 10 Gaming

    Can't type Japanese characters in any apps.: For whatever reason, when I try typing Japanese in apps, my text isn't converted to Hiragana. I can type in apps fine after reinstalling the language up until I restart my PC. After restarting, the only place my text is converted to Hiragana is in the Windows search bar. As...

  2. in Windows 10 Software and Apps

    Can't type Japanese characters in any apps.: For whatever reason, when I try typing Japanese in apps, my text isn't converted to Hiragana. I can type in apps fine after reinstalling the language up until I restart my PC. After restarting, the only place my text is converted to Hiragana is in the Windows search bar. As...

  3. in Windows 10 Network and Sharing

    File name doesn't match these Chinese characters: I tried to open the file that contains an mp3 with the words in it. When I open this music file into the Groove Music app, it doesn't actually show Chinese characters. It also happens in Windows Media Player. When I tried to play a music file using Microsoft Edge, it shows...

  4. in Windows 10 Customization

    Persian Characters in file names: How to allow persian letters to be displayed in file names in Microsoft? like گ or چ or پ or ڨ My PC accepts Arabic as it is my native language, but I need some characters from the Persian as well since the alphabets of the two languages are very similar. I DON'T want...

  5. in Windows 10 Network and Sharing

    Chinese Character in Names of Zipped Files: Hi, I'm a translator and get sent a lot of files containing Chinese characters in the file name. If these files are sent to me in a zip folder, the file names get all messed up, e.g. "δ--⌐ε½.doc", after unzipping. Is there some way to stop this from happening? Do I need to...

  6. in Windows 10 Network and Sharing

    A file name cannot include any of the fallowing characters < > / : \ * ? ": I'm trying to use these illegal terms to create a program i could use in CMD to execute. I'm trying to create a portable JAVA on a portable hard drive using these steps below however when it comes to the naming convention i can not change the file type to /"NAME/" to be able...

  7. in Windows 10 Customization

    Arabic Numbers format - issue if the number followed by any character: hello, i find a problem with Arabic number starting from window 8 till current build of windows 10 the following screen shot for window 10 and window 7 , you will find arabic numbers in windows 10 is converted to English number after adding currency symbol the...

  8. in Cortana

    Searching for files names containing symbols: I have a folder containing files which I named with = in the name e.g. "Richmond Division====". They have anything from 1-6 ='s in the name. I want to be able to search for these files, say all the files with four ='s. When I try it comes up with no results. Is there a way...

  9. in Windows 10 Software and Apps

    Compare a text file containing file names with files in a folder: Hi, I have a text files containing a list of file names and I wish to compare that to a folder with files in it. The folder contains a rather large number of files and I want to see if files in that folder exist in the file with the list of file names. Hope I have explained...