Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 03, 2015, 06:29:13 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: reserved characters in NTFS  (Read 3091 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,369
    • View Profile
    • Donate to Member
reserved characters in NTFS
« on: April 04, 2012, 04:07:42 PM »
Hello!

not being able to use " * : < > ? \ / | characters in filenames (reserved characters in NTFS) is a major inconvenience

is there a way to overcome this?

I want to create an archive of files that may have such characters

thanks!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,393
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #1 on: April 04, 2012, 04:10:20 PM »
AFAIK, nope.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,369
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #2 on: April 04, 2012, 04:16:19 PM »
maybe using metadata or something?

mwb1100

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,430
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #3 on: April 04, 2012, 04:42:47 PM »
not being able to use " * : < > ? \ / | characters in filenames (reserved characters in NTFS) is a major inconvenience

I'd think that having files with characters like those in the name would be an even bigger inconvenience!

files that may have such characters

Where are those files coming from?

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 12,787
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: reserved characters in NTFS
« Reply #4 on: April 04, 2012, 09:57:38 PM »
AFAIK, nope.

+1

It is simply impossible to use "\" in a file name as it would indicate a path.

I can't see any reason to go down this path of using illegal characters. Is there some specific problem that you're trying to address?

If you REALLY want to use them, then you can create an NTFS stream and name it "name" or something like that, then put the file name in there and write a custom browser that reads those file names.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: reserved characters in NTFS
« Reply #5 on: April 05, 2012, 01:07:28 AM »
Perhaps it would be handy to come with a short list of alternative legal characters like tilde and that pipe thing with a gap in it. (sorry, i'm on an iPad and can't find the characters, except ~.)

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,896
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #6 on: April 05, 2012, 04:05:54 AM »
Don't use NTFS. You might be able to mount the partition under linux or boot from something like Hiren's BootCD and rename the offending files.

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 591
  • what am I doing in this handbasket?
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #7 on: April 05, 2012, 07:18:43 AM »
AFAIK, nope.
If you REALLY want to use them, then you can create an NTFS stream and name it "name" or something like that, then put the file name in there and write a custom browser that reads those file names.

+1
vi vi vi - editor of the beast

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,369
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #8 on: April 05, 2012, 04:31:10 PM »
I want to name these files with such characters, because each file contains info about a specific substance and I want to use the name of the substance in the file name, to create an easily searchable (by filename) database

Perhaps it would be handy to come with a short list of alternative legal characters like tilde and that pipe thing with a gap in it. (sorry, i'm on an iPad and can't find the characters, except ~.)

unfortunately a list of alternative legal characters seems the only handy solution, where can I find one that is as much as universal as possible? ie. many people use it

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,117
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: reserved characters in NTFS
« Reply #9 on: April 06, 2012, 05:08:20 AM »
Here's a list of characters (probably not the best resource) http://www.theworldo...tuff.com/characters/

The problem seems to be the convenience of being able to use alternate characters; it's not too practical to start using a system that you can't type with standard keyboard shortcuts. With my UK keyboard, these are legal characters readily available to use:

¦ (this is the one I mentioned above, named "Broken vertical bar", this isn't the "pipe" character.)
¬
=
+
~
@
,
&
^
'
#
]
[
}
{
)
(
&
%
$
£
!
`
I've seen ~ used instead of \ to indicate directory structures (maybe that's common?).

I guess you could use:

¦ for |

¬ for \

~ for /

~ for \

Or double up common elements (just using similar "slants" within the characters) like:

%% or ,,  or ## for /

`` or && for \


It would be nice if there is a standard that people have already embraced, I agree.

edit:
I've just realised it would be quite difficult coming up with similar looking characters for things like * and ? (well, all of them really). The large problem is not being able to use characters that are going to cause confusion because they are used reguarly, e.g. would it be bad to use ; in place of : etc., etc.
« Last Edit: April 06, 2012, 05:21:16 AM by nudone »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,524
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #10 on: April 06, 2012, 05:42:26 AM »
Someone (I think it's Skwire in one of his apps) uses the Yen symbol for paths
¥

(it's allowed in filenames)
Tom

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 6,763
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #11 on: April 06, 2012, 05:53:51 AM »
#  is maybe the only logic replacement sign, since it can mean anything when you search for file names.


Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,539
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #12 on: April 06, 2012, 06:43:55 AM »
I think it's rather silly to try to change the NTFS driver/behavior to support special characters that are actually reserved/designated for separating and selecting drives, directories and files. That's not a plausible route to go.

So, if you can't solve it directly, add an extra indirection, meaning, store the information in some (searchable) fileformat, like one of several available note-storage programs, designed for tasks like these :up:

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,393
    • View Profile
    • Donate to Member
Re: reserved characters in NTFS
« Reply #13 on: April 06, 2012, 07:50:45 AM »
Someone (I think it's Skwire in one of his apps) uses the Yen symbol for paths

Actually, that is a side effect of running Japanese as the default language on my English Windows boxes; most backslashes show up as Yen symbols.  I've gotten so used to it over the years that I hardly notice it anymore.

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 12,787
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: reserved characters in NTFS
« Reply #14 on: April 07, 2012, 01:56:06 AM »
Someone (I think it's Skwire in one of his apps) uses the Yen symbol for paths

Actually, that is a side effect of running Japanese as the default language on my English Windows boxes; most backslashes show up as Yen symbols.  I've gotten so used to it over the years that I hardly notice it anymore.

The Korean won symbol (₩) serves the same purpose. However, I don't think either are legal in file names...

Scratch that... I just did a quick look, and it appears that the won symbol (and yen symbol) are legal, BUT, the \ character in Korean and Japanese is displayed differently as a won and yen symbol, respectively. So, while they "look" different than the \ character, under the hood they are the same.

So, if you use a \, then convert it to Korean/Japanese, it will change, and vice versa. And none of those characters are equivalent to the KRW or JPY symbols - ₩ or ¥.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker