Making two different files with the same name

Making two different files with the same name

Post by Lior Messinge » Thu, 29 Jun 2000 04:00:00



Hi,

I'm trying to show two different fiels as files with the same name - I want
it to look the same in Explorer. Can it be done? I can recreate these files
if I need - can it be done then, with new names I decide?

Thanks for any tip or info,
Best regards,
Lior Messinger

 
 
 

Making two different files with the same name

Post by Helmut P. Einfal » Thu, 29 Jun 2000 04:00:00


Lior Messinger schrieb in Nachricht ...

Quote:>Hi,

>I'm trying to show two different files as files with the same name - I
want
>it to look the same in Explorer. Can it be done? I can recreate these
files
>if I need - can it be done then, with new names I decide?

Normally, creating a second file of the same name as an existing one in
a directory will get you to the point where you're asked if you want to
overwrite the existing one.
Presumably the only way within the same directory is to have names that
are *almost* similar:
abcd<blank>efgh.ext and abcd<Alt+0255>efgh.ext  will *look* similar, but
although the middle space seems the same, it will be different to the
computer ("soft" space vs. "hard" space).

Helmut
--
If you think *you* are stubborn, try a bulldog...

 
 
 

Making two different files with the same name

Post by Lior Messinge » Mon, 03 Jul 2000 04:00:00


Hi,

Thanks for the help. Actually I'm trying to create more than 2 files - maybe
a way to create more and more files. I wander  - do u think can it be done
this way? And, what is the Alt-255?

Thanks again,
Lior



Quote:

> Lior Messinger schrieb in Nachricht ...
> >Hi,

> >I'm trying to show two different files as files with the same name - I
> want
> >it to look the same in Explorer. Can it be done? I can recreate these
> files
> >if I need - can it be done then, with new names I decide?

> Normally, creating a second file of the same name as an existing one in
> a directory will get you to the point where you're asked if you want to
> overwrite the existing one.
> Presumably the only way within the same directory is to have names that
> are *almost* similar:
> abcd<blank>efgh.ext and abcd<Alt+0255>efgh.ext  will *look* similar, but
> although the middle space seems the same, it will be different to the
> computer ("soft" space vs. "hard" space).

> Helmut
> --
> If you think *you* are stubborn, try a bulldog...

 
 
 

Making two different files with the same name

Post by Aaron J Margosi » Wed, 05 Jul 2000 04:00:00


Curious:  why on earth do you want to do this?

Beneath the shell, NTFS *is* case sensitive.  If you bypass Win32 and talk
directly to ntdll.dll, or (possibly) use the Posix interfaces, you can
create distinct files with names distinguishable only by case, and create
havoc for users limited to Explorer or CMD.EXE.  E.g.,
     MYFILE.TXT
     MYFILE.txt
     MyFile.Txt
     myfile.txt
     ...
I've never seen nor done this, so I don't know how they will actually appear
in Explorer.

--
Aaron
--------------------------------------
Aaron J Margosis

Please send replies only to the newsgroup(s).  More people are available to
answer the questions, and more people benefit from the responses.  **I won't
respond to emails.**  Thanks.


> Hi,

> Thanks for the help. Actually I'm trying to create more than 2 files -
maybe
> a way to create more and more files. I wander  - do u think can it be done
> this way? And, what is the Alt-255?

> Thanks again,
> Lior



> > Lior Messinger schrieb in Nachricht ...
> > >Hi,

> > >I'm trying to show two different files as files with the same name - I
> > want
> > >it to look the same in Explorer. Can it be done? I can recreate these
> > files
> > >if I need - can it be done then, with new names I decide?

> > Normally, creating a second file of the same name as an existing one in
> > a directory will get you to the point where you're asked if you want to
> > overwrite the existing one.
> > Presumably the only way within the same directory is to have names that
> > are *almost* similar:
> > abcd<blank>efgh.ext and abcd<Alt+0255>efgh.ext  will *look* similar, but
> > although the middle space seems the same, it will be different to the
> > computer ("soft" space vs. "hard" space).

> > Helmut
> > --
> > If you think *you* are stubborn, try a bulldog...

 
 
 

Making two different files with the same name

Post by Dejan Maksimovi » Wed, 05 Jul 2000 04:00:00


    As one file.

    Regards, Dejan.


> Curious:  why on earth do you want to do this?

> Beneath the shell, NTFS *is* case sensitive.  If you bypass Win32 and talk
> directly to ntdll.dll, or (possibly) use the Posix interfaces, you can
> create distinct files with names distinguishable only by case, and create
> havoc for users limited to Explorer or CMD.EXE.  E.g.,
>      MYFILE.TXT
>      MYFILE.txt
>      MyFile.Txt
>      myfile.txt
>      ...
> I've never seen nor done this, so I don't know how they will actually appear
> in Explorer.

> --
> Aaron
> --------------------------------------
> Aaron J Margosis

> Please send replies only to the newsgroup(s).  More people are available to
> answer the questions, and more people benefit from the responses.  **I won't
> respond to emails.**  Thanks.



> > Hi,

> > Thanks for the help. Actually I'm trying to create more than 2 files -
> maybe
> > a way to create more and more files. I wander  - do u think can it be done
> > this way? And, what is the Alt-255?

> > Thanks again,
> > Lior



> > > Lior Messinger schrieb in Nachricht ...
> > > >Hi,

> > > >I'm trying to show two different files as files with the same name - I
> > > want
> > > >it to look the same in Explorer. Can it be done? I can recreate these
> > > files
> > > >if I need - can it be done then, with new names I decide?

> > > Normally, creating a second file of the same name as an existing one in
> > > a directory will get you to the point where you're asked if you want to
> > > overwrite the existing one.
> > > Presumably the only way within the same directory is to have names that
> > > are *almost* similar:
> > > abcd<blank>efgh.ext and abcd<Alt+0255>efgh.ext  will *look* similar, but
> > > although the middle space seems the same, it will be different to the
> > > computer ("soft" space vs. "hard" space).

> > > Helmut
> > > --
> > > If you think *you* are stubborn, try a bulldog...

--
Regards, Dejan M. CEO Alfa Co. http://www.alfaunits.co.yu

Professional file&system related components and libraries for Win32 developers.
Alfa Units - #1 file and system handling units for Delphi.
Alfa File Monitor - #1 file monitoring system for Win32 developers.
Alfa Interceptor - #1 file protection and hiding system for Win32 developers.
 
 
 

Making two different files with the same name

Post by Lior Messinge » Wed, 12 Jul 2000 04:00:00


Thanks! I was wondering whether I have the option to:
1. add a changing remark to the file, and  have the file system treat it
differently based on the remark
2. subclass, or hook into explorer, and DISPLAY different files as the same
name

any ideas?

regards,
Lior


>Curious:  why on earth do you want to do this?

>Beneath the shell, NTFS *is* case sensitive.  If you bypass Win32 and talk
>directly to ntdll.dll, or (possibly) use the Posix interfaces, you can
>create distinct files with names distinguishable only by case, and create
>havoc for users limited to Explorer or CMD.EXE.  E.g.,
>     MYFILE.TXT
>     MYFILE.txt
>     MyFile.Txt
>     myfile.txt
>     ...
>I've never seen nor done this, so I don't know how they will actually
appear
>in Explorer.

>--
>Aaron
>--------------------------------------
>Aaron J Margosis

>Please send replies only to the newsgroup(s).  More people are available to
>answer the questions, and more people benefit from the responses.  **I
won't
>respond to emails.**  Thanks.



>> Hi,

>> Thanks for the help. Actually I'm trying to create more than 2 files -
>maybe
>> a way to create more and more files. I wander  - do u think can it be
done
>> this way? And, what is the Alt-255?

>> Thanks again,
>> Lior



>> > Lior Messinger schrieb in Nachricht ...
>> > >Hi,

>> > >I'm trying to show two different files as files with the same name - I
>> > want
>> > >it to look the same in Explorer. Can it be done? I can recreate these
>> > files
>> > >if I need - can it be done then, with new names I decide?

>> > Normally, creating a second file of the same name as an existing one in
>> > a directory will get you to the point where you're asked if you want to
>> > overwrite the existing one.
>> > Presumably the only way within the same directory is to have names that
>> > are *almost* similar:
>> > abcd<blank>efgh.ext and abcd<Alt+0255>efgh.ext  will *look* similar,
but
>> > although the middle space seems the same, it will be different to the
>> > computer ("soft" space vs. "hard" space).

>> > Helmut
>> > --
>> > If you think *you* are stubborn, try a bulldog...

 
 
 

Making two different files with the same name

Post by Ron Rubl » Wed, 12 Jul 2000 04:00:00



>Thanks! I was wondering whether I have the option to:
>1. add a changing remark to the file, and  have the file system treat it
>differently based on the remark
>2. subclass, or hook into explorer, and DISPLAY different files as the same
>name

That last can be accomplished with a shell namespace
extension. Check the MS documentation and samples
on "Extending the Shell's Namespace", and especially
the articles in Microsoft Systems Journal and tutorials
on the web.

Basically, a namespace extension defines a sort of hook
interface explorer will call that allows you to present
any data you want as a file/folder list.

 
 
 

Making two different files with the same name

Post by Lior Messinge » Fri, 14 Jul 2000 04:00:00


Thanks! I'll try that


> >Thanks! I was wondering whether I have the option to:
> >1. add a changing remark to the file, and  have the file system treat it
> >differently based on the remark
> >2. subclass, or hook into explorer, and DISPLAY different files as the
same
> >name

> That last can be accomplished with a shell namespace
> extension. Check the MS documentation and samples
> on "Extending the Shell's Namespace", and especially
> the articles in Microsoft Systems Journal and tutorials
> on the web.

> Basically, a namespace extension defines a sort of hook
> interface explorer will call that allows you to present
> any data you want as a file/folder list.