FC.EXE Doesn't work correctly

I think I found a bug in FC.EXE (File Compare “DOS” command) under win2k.
the syntax of the command is:

fc firstfile.txt secondfile.txt

If “firstfile.txt” has the offline attribute turned on, fc.exe tells the
user that it couldn’t find the file, even though my driver found it and
returned status_success on a findfirst in my QueryDirectory code.

If I reverse the order of the file names on the command line, it works -
even though the offline attribute is on for “firstfile.txt”. If I turn off
the bit in QueryDirectory (under the debugger) when “firstfile.txt” is first
in the argument list to FC, it works.

I wanted to document this here, incase someone else finds this bug; but
should I report it to Microsoft to help them have a better product? :wink:
If so, is there an easy way to report the bug, instead of calling support?

Regards,

Greg

Hello Greg,

Do you reproduce the same behavior without your filter driver installed?

Thursday, May 06, 2004, 8:20:52 PM, you wrote:

Greg Pearce> I think I found a bug in FC.EXE (File Compare “DOS” command) under win2k.
Greg Pearce> the syntax of the command is:

Greg Pearce> fc firstfile.txt secondfile.txt

Greg Pearce> If “firstfile.txt” has the offline attribute turned on, fc.exe tells the
Greg Pearce> user that it couldn’t find the file, even though my driver found it and
Greg Pearce> returned status_success on a findfirst in my QueryDirectory code.

Greg Pearce> If I reverse the order of the file names on the command line, it works -
Greg Pearce> even though the offline attribute is on for “firstfile.txt”. If I turn off
Greg Pearce> the bit in QueryDirectory (under the debugger) when “firstfile.txt” is first
Greg Pearce> in the argument list to FC, it works.

Greg Pearce> I wanted to document this here, incase someone else finds this bug; but
Greg Pearce> should I report it to Microsoft to help them have a better product? :wink:
Greg Pearce> If so, is there an easy way to report the bug, instead of calling support?

Greg Pearce> Regards,

Greg Pearce> Greg

Greg Pearce> —
Greg Pearce> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

Greg Pearce> You are currently subscribed to ntfsd as: xxxxx@nero.com
Greg Pearce> To unsubscribe send a blank email to xxxxx@lists.osr.com


Best regards,
Oleksiy mailto:xxxxx@nero.com

Oleksiy,

Well, I don’t know, because I can’t get a file onto the C: drive (ntfs
volume) with the offline bit set (by definition, the file can’t be offline,
if it’s on the c: drive, I guess). I also don’t have any other offline
media to try this on, unless someone could help me figure out how to do it
on a zip drive or floppy disk.

Regards,
Greg

“Oleksiy Shatylo” wrote in message news:xxxxx@ntfsd…
> Hello Greg,
>
> Do you reproduce the same behavior without your filter driver installed?
>
> Thursday, May 06, 2004, 8:20:52 PM, you wrote:
>
> Greg Pearce> I think I found a bug in FC.EXE (File Compare “DOS” command)
under win2k.
> Greg Pearce> the syntax of the command is:
>
> Greg Pearce> fc firstfile.txt secondfile.txt
>
> Greg Pearce> If “firstfile.txt” has the offline attribute turned on,
fc.exe tells the
> Greg Pearce> user that it couldn’t find the file, even though my driver
found it and
> Greg Pearce> returned status_success on a findfirst in my QueryDirectory
code.
>
> Greg Pearce> If I reverse the order of the file names on the command line,
it works -
> Greg Pearce> even though the offline attribute is on for “firstfile.txt”.
If I turn off
> Greg Pearce> the bit in QueryDirectory (under the debugger) when
“firstfile.txt” is first
> Greg Pearce> in the argument list to FC, it works.
>
> Greg Pearce> I wanted to document this here, incase someone else finds
this bug; but
> Greg Pearce> should I report it to Microsoft to help them have a better
product? :wink:
> Greg Pearce> If so, is there an easy way to report the bug, instead of
calling support?
>
> Greg Pearce> Regards,
>
> Greg Pearce> Greg
>
>
>
> Greg Pearce> —
> Greg Pearce> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> Greg Pearce> You are currently subscribed to ntfsd as: xxxxx@nero.com
> Greg Pearce> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
>
>
> –
> Best regards,
> Oleksiy mailto:xxxxx@nero.com
>
>
>

Hi,

I can confirm your observation. FC.EXE (on W2K) fails if the first file has
FILE_ATTRIBUTE_OFFLINE set. It works w/o this flag on the same (my) file
system.
Funnily enough: I read this original post and now few days later I tried to
figure out why fc tells me that it cannot find a file which is obviously
present. Took several minutes until this post came back to my mind :slight_smile:

Regards,
Detlef Golze

Oleksiy,

Well, I don’t know, because I can’t get a file onto the C: drive (ntfs
volume) with the offline bit set (by definition, the file can’t be
offline,
if it’s on the c: drive, I guess). I also don’t have any other offline
media to try this on, unless someone could help me figure out how to do it
on a zip drive or floppy disk.

Regards,
Greg

“Oleksiy Shatylo” wrote in message news:xxxxx@ntfsd…
> > Hello Greg,
> >
> > Do you reproduce the same behavior without your filter driver installed?
> >
> > Thursday, May 06, 2004, 8:20:52 PM, you wrote:
> >
> > Greg Pearce> I think I found a bug in FC.EXE (File Compare “DOS”
> command)
> under win2k.
> > Greg Pearce> the syntax of the command is:
> >
> > Greg Pearce> fc firstfile.txt secondfile.txt
> >
> > Greg Pearce> If “firstfile.txt” has the offline attribute turned on,
> fc.exe tells the
> > Greg Pearce> user that it couldn’t find the file, even though my driver
> found it and
> > Greg Pearce> returned status_success on a findfirst in my QueryDirectory
> code.
> >
> > Greg Pearce> If I reverse the order of the file names on the command
> line,
> it works -
> > Greg Pearce> even though the offline attribute is on for
> “firstfile.txt”.
> If I turn off
> > Greg Pearce> the bit in QueryDirectory (under the debugger) when
> “firstfile.txt” is first
> > Greg Pearce> in the argument list to FC, it works.
> >
> > Greg Pearce> I wanted to document this here, incase someone else finds
> this bug; but
> > Greg Pearce> should I report it to Microsoft to help them have a better
> product? :wink:
> > Greg Pearce> If so, is there an easy way to report the bug, instead of
> calling support?
> >
> > Greg Pearce> Regards,
> >
> > Greg Pearce> Greg
> >
> >
> >
> > Greg Pearce> —
> > Greg Pearce> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > Greg Pearce> You are currently subscribed to ntfsd as: xxxxx@nero.com
> > Greg Pearce> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
> >
> >
> > –
> > Best regards,
> > Oleksiy mailto:xxxxx@nero.com
> >
> >
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmx.de
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl

Thanks Detlef - I appreciate you confirmation of this problem! Does anyone
in the group have a logical explanation for this, or is it a bug?

Thanks again, and regards,

Greg Pearce

wrote in message news:xxxxx@ntfsd…
> Hi,
>
> I can confirm your observation. FC.EXE (on W2K) fails if the first file
has
> FILE_ATTRIBUTE_OFFLINE set. It works w/o this flag on the same (my) file
> system.
> Funnily enough: I read this original post and now few days later I tried
to
> figure out why fc tells me that it cannot find a file which is obviously
> present. Took several minutes until this post came back to my mind :slight_smile:
>
> Regards,
> Detlef Golze
>
> > Oleksiy,
> >
> > Well, I don’t know, because I can’t get a file onto the C: drive (ntfs
> > volume) with the offline bit set (by definition, the file can’t be
> > offline,
> > if it’s on the c: drive, I guess). I also don’t have any other offline
> > media to try this on, unless someone could help me figure out how to do
it
> > on a zip drive or floppy disk.
> >
> > Regards,
> > Greg
> >
> > “Oleksiy Shatylo” wrote in message
news:xxxxx@ntfsd…
> > > Hello Greg,
> > >
> > > Do you reproduce the same behavior without your filter driver
installed?
> > >
> > > Thursday, May 06, 2004, 8:20:52 PM, you wrote:
> > >
> > > Greg Pearce> I think I found a bug in FC.EXE (File Compare “DOS”
> > command)
> > under win2k.
> > > Greg Pearce> the syntax of the command is:
> > >
> > > Greg Pearce> fc firstfile.txt secondfile.txt
> > >
> > > Greg Pearce> If “firstfile.txt” has the offline attribute turned on,
> > fc.exe tells the
> > > Greg Pearce> user that it couldn’t find the file, even though my
driver
> > found it and
> > > Greg Pearce> returned status_success on a findfirst in my
QueryDirectory
> > code.
> > >
> > > Greg Pearce> If I reverse the order of the file names on the command
> > line,
> > it works -
> > > Greg Pearce> even though the offline attribute is on for
> > “firstfile.txt”.
> > If I turn off
> > > Greg Pearce> the bit in QueryDirectory (under the debugger) when
> > “firstfile.txt” is first
> > > Greg Pearce> in the argument list to FC, it works.
> > >
> > > Greg Pearce> I wanted to document this here, incase someone else finds
> > this bug; but
> > > Greg Pearce> should I report it to Microsoft to help them have a
better
> > product? :wink:
> > > Greg Pearce> If so, is there an easy way to report the bug, instead of
> > calling support?
> > >
> > > Greg Pearce> Regards,
> > >
> > > Greg Pearce> Greg
> > >
> > >
> > >
> > > Greg Pearce> —
> > > Greg Pearce> Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> > >
> > > Greg Pearce> You are currently subscribed to ntfsd as:
xxxxx@nero.com
> > > Greg Pearce> To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> > >
> > >
> > >
> > > –
> > > Best regards,
> > > Oleksiy mailto:xxxxx@nero.com
> > >
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@gmx.de
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> –
> NEU : GMX Internet.FreeDSL
> Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl
>
>