I am programming a file system filter recently.But I have the question as follows nowadays:
When I match the fullpathname of a file in file system with the fullpathname in my database, I find that when I am under windows explorer it is right and when I am under “command prompt” it is wrong if the fullpathname not match the 8.3 rule such as “f:\mydocument\mytestfile.txt” etc.
When I debug and trace I find under “command prompt” the previous filename is "f:\mydocu~1\mytest~1.txt, so my matching of fullpathname is failure.
When I find this problem I am very glad, but I am wonder how I can solve this problem better. I hope someone can help me to solve this problem. Thanks.
************************************
ÖлªÍøаæÁÄÌìÊÒÉÁÁÁµÇ³¡£¡
http://newchat.china.com
À´Points4U,»ý·Ö¶Ò»»PDA£¬Sony VCD…
http://points4u.china.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
If You’re not in a QUERY_DIRECTORY Irp, asking for file name info, at least (means also FileBoth, FileFull and FileDir info styles), You must send the dir query Irp, to check the LFN/SFN (depending on which You need), to the FS.
On the other hand, in the QUERY_DIRECTORY Irp, both SFN and LFN are stored, in the returned structure.
Regards, Dejan.
xxxxx@china.com wrote:
I am programming a file system filter recently.But I have the question as follows nowadays:
When I match the fullpathname of a file in file system with the fullpathname in my database, I find that when I am under windows explorer it is right and when I am under “command prompt” it is wrong if the fullpathname not match the 8.3 rule such as “f:\mydocument\mytestfile.txt” etc.
When I debug and trace I find under “command prompt” the previous filename is "f:\mydocu~1\mytest~1.txt, so my matching of fullpathname is failure.
When I find this problem I am very glad, but I am wonder how I can solve this problem better. I hope someone can help me to solve this problem. Thanks.
************************************
ÖлªÍøаæÁÄÌìÊÒÉÁÁÁµÇ³¡£¡
http://newchat.china.com
À´Points4U,»ý·Ö¶Ò»»PDA£¬Sony VCD…
http://points4u.china.com
You are currently subscribed to ntfsd as: xxxxx@ptt.yu
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
–
Regards, Dejan M. CEO Alfa Co. www.alfaunits.co.yu and www.register.co.yu
E-mail : xxxxx@ptt.yu, xxxxx@register.co.yu and xxxxx@alfaunits.co.yu
ICQ# : 56570367
Professional file&system related components and libraries for Win32 developers.
Alfa File Monitor - #1 file monitoring system for Win32 developers.
Alfa File Protector - #1 file protection and hiding system for Win32 developers.
Alfa Units - #1 file and system handling units for Delphi.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com