What is the difference between cmd.exe copy and explorer drag'n'drop copy?

Hello,

I have implemented a read-only redir and now I’m trying to understand
why a drag’n’drop copy works but not a copy at the command prompt. If I
use IrpTracker I can see that any IRP is completed successfully.

I have disabled any fastio support by returning false or
STATUS_NOT_IMPLEMENTED. But I initialize the section pointers, so I can
use notepad.exe to open a text file.

The problem I have is I can not copy a file at the command prompt. Copy
returns “0 file(s) copied” without any error message. But I can open a
text file by using edit.com.

Where could be the problem?
Any help would be appreciated!

h.wulff

> I have implemented a read-only redir and now I’m trying to understand

why a drag’n’drop copy works but not a copy at the command prompt. If I
use IrpTracker I can see that any IRP is completed successfully.

Did you try filemon or filespy ? It will do better job than IrpTracker
for this case.

L.

Hello,

thanks for your reply.

Yes, I tried filemon. It does not work on non-lanman redirectors, but
filespy works great.
Unfortunately, the result is the same. Every IRP is completed
successfully. (Except the disabled fastio stuff, as I said in my first
post)
So, I opened my mind a bit wider: Is it possible that applications like
cmd.exe copy rely on correct behave of the network provider? In my case
I haven’t implemented the enumeration feature yet, my network drive is
still marked as disconnected.

Could this be a problem? Or where else to look?

In article , xxxxx@volny.cz says…
> > I have implemented a read-only redir and now I’m trying to understand
> > why a drag’n’drop copy works but not a copy at the command prompt. If I
> > use IrpTracker I can see that any IRP is completed successfully.
>
> Did you try filemon or filespy ? It will do better job than IrpTracker
> for this case.
>
> L.
>
>



h.wulff

Be sure that you have proper DeviceObject->DeviceType in your redirector’s
device.
COPY is not a major pain. MS Office’s File Open dialogs - are :slight_smile:

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “h.wulff”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Monday, July 11, 2005 12:48 AM
Subject: Re:[ntfsd] What is the difference between cmd.exe copy and explorer
drag’n’drop copy?

> Hello,
>
> thanks for your reply.
>
> Yes, I tried filemon. It does not work on non-lanman redirectors, but
> filespy works great.
> Unfortunately, the result is the same. Every IRP is completed
> successfully. (Except the disabled fastio stuff, as I said in my first
> post)
> So, I opened my mind a bit wider: Is it possible that applications like
> cmd.exe copy rely on correct behave of the network provider? In my case
> I haven’t implemented the enumeration feature yet, my network drive is
> still marked as disconnected.
>
> Could this be a problem? Or where else to look?
>
> In article , xxxxx@volny.cz says…
> > > I have implemented a read-only redir and now I’m trying to understand
> > > why a drag’n’drop copy works but not a copy at the command prompt. If I
> > > use IrpTracker I can see that any IRP is completed successfully.
> >
> > Did you try filemon or filespy ? It will do better job than IrpTracker
> > for this case.
> >
> > L.
> >
> >
>
> –
>
> h.wulff
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Hello,

thanks for your reply.

I use FILE_DEVICE_NETWORK_REDIRECTOR as device type. I also tried
FILE_DEVICE_NETWORK_FILE_SYSTEM, but this didn’t help either.
Btw: What is the different between FILE_DEVICE_NETWORK_REDIRECTOR and
FILE_DEVICE_NETWORK_FILE_SYSTEM?

And I have no doubt that the real pain is coming soon, but first I
should be satisfied with the small pain… :wink:

In article , xxxxx@storagecraft.com says…
> Be sure that you have proper DeviceObject->DeviceType in your redirector’s
> device.
> COPY is not a major pain. MS Office’s File Open dialogs - are :slight_smile:
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>



h.wulff