No more \\.\X: raw disk access

  • Thread starter Thread starter Lucvdv
  • Start date Start date
L

Lucvdv

I started working on a disk replication tool for CompactFlash, to deploy an
XP Embedded device.

It would save me a lot of time and rebooting into good old DOS, if I could
replace the CF's bootsector from within the same tool.

The problem is that a filestream doesn't support raw disk access the way
"Open" did in VB6.

Is there a way to do it that I didn't find in the docs, or will I have to
dive into the win32 API's, or has someone else already done that?
 
Lucvdv said:
The problem is that a filestream doesn't support raw disk access the
way "Open" did in VB6.

Can't you use the (upgraded versions of the) same old file commands?

AIUI, the FileOpen, LineInput, FileGet, etc. commands all operate
identically to the equivalent commands in VB6. I could be wrong, but it's
worth a try and better than APIs.
 
Can't you use the (upgraded versions of the) same old file commands?

AIUI, the FileOpen, LineInput, FileGet, etc. commands all operate
identically to the equivalent commands in VB6. I could be wrong, but it's
worth a try and better than APIs.

No, it's the same: "\\.\X:" raw disk access isn't supported.

These commands probably use streams internally.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top