Welcome Guest.   Make a donation to an author on the site September 01, 2014, 11:31:33 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: reserved characters in NTFS  (Read 2398 times)
kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« 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!
Logged
skwire
Charter Member
***
Posts: 4,038



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: April 04, 2012, 04:10:20 PM »

AFAIK, nope.
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #2 on: April 04, 2012, 04:16:19 PM »

maybe using metadata or something?
Logged
mwb1100
Supporting Member
**
Posts: 1,296


View Profile Give some DonationCredits to this forum member
« 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?
Logged
Renegade
Charter Member
***
Posts: 11,194



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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.

Logged

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
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 ~.)
Logged
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« 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.
Logged

x16wda
Supporting Member
**
Posts: 446


what am I doing in this handbasket?

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Logged

vi vi vi - editor of the beast
kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« 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
Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: April 06, 2012, 05:08:20 AM »

Here's a list of characters (probably not the best resource) http://www.theworldofstuff.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 » Logged
tomos
Charter Member
***
Posts: 8,480



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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)
Logged

Tom
Curt
Supporting Member
**
Posts: 6,336

see users location on a map View Profile Give some DonationCredits to this forum member
« 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.

Logged
Ath
Supporting Member
**
Posts: 2,201



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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 thumbs up
Logged

skwire
Charter Member
***
Posts: 4,038



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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.
Logged

Renegade
Charter Member
***
Posts: 11,194



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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 ¥.

Logged

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

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.039s | Server load: 0.19 ]