G
Graham Stevenson
Hi,
I have a USB mass storage device being developed by
colleagues, and need to interface that to a Windows Forms
application (C#). The device is neither purely a storage
device nor an HID device, it is a combination of the two,
so it seems expedient to use files to communicate PC <->
Device.
The device can read AND WRITE files.
I can write and read the files, but they appear to be
cached ??. If the timestamp is changed by the device,
Windows does not see this change unless an 'Eject'
command is performed on the drive.
Have tried DirectoryInfo and FileInfo classes, as well as
a FileSystemWatcher (but I guess this uses the FileIO OS,
so won't see external changes). None of these can see the
new timestamp until the 'Eject' has been implemented.
How can I achieve this please - or how can I force the
cached file information to be refreshed, so that I can
see the change. Maybe do an 'Eject' programmatically ??? -
could be dangerous just to see a filestamp!!.
Thanks
Graham
I have a USB mass storage device being developed by
colleagues, and need to interface that to a Windows Forms
application (C#). The device is neither purely a storage
device nor an HID device, it is a combination of the two,
so it seems expedient to use files to communicate PC <->
Device.
The device can read AND WRITE files.
I can write and read the files, but they appear to be
cached ??. If the timestamp is changed by the device,
Windows does not see this change unless an 'Eject'
command is performed on the drive.
Have tried DirectoryInfo and FileInfo classes, as well as
a FileSystemWatcher (but I guess this uses the FileIO OS,
so won't see external changes). None of these can see the
new timestamp until the 'Eject' has been implemented.
How can I achieve this please - or how can I force the
cached file information to be refreshed, so that I can
see the change. Maybe do an 'Eject' programmatically ??? -
could be dangerous just to see a filestamp!!.
Thanks
Graham