How to programmatically read VHD file

How to programmatically read VHD file

Page 1 of 1

2 Replies - 5348 Views - Last Post: 26 November 2010 - 01:17 PM Rate Topic: -----

#1 chitinas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 21-November 10

How to programmatically read VHD file

Posted 21 November 2010 - 04:35 AM

Helllo, i need programmatically open VHD file with C#, after that write inside this file. It is possible to do it? Thanks for yours answers.
Is This A Good Question/Topic? 0
  • +

Replies To: How to programmatically read VHD file

#2 elbielefeld  Icon User is offline

  • D.I.C Head

Reputation: 70
  • View blog
  • Posts: 216
  • Joined: 18-May 10

Re: How to programmatically read VHD file

Posted 21 November 2010 - 09:25 AM

You can open a vhd file like every other file. But as I assume you want to write files to it (thus having to know about the filesystem) it would be easier to mount the VHD file first (see http://msdn.microsof...684(VS.85).aspx) and access it by drive letter.

This post has been edited by elbielefeld: 21 November 2010 - 09:25 AM

Was This Post Helpful? 0
  • +
  • -

#3 chitinas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 21-November 10

Re: How to programmatically read VHD file

Posted 26 November 2010 - 01:17 PM

View Postelbielefeld, on 21 November 2010 - 08:25 AM, said:

You can open a vhd file like every other file. But as I assume you want to write files to it (thus having to know about the filesystem) it would be easier to mount the VHD file first (see http://msdn.microsof...684(VS.85).aspx) and access it by drive letter.


Thanks for your answer. This artical was very helpful. If you know maybe you can explain more how programicall to attach Vhd file. In this article i found Syntax, but i am new in this area so i have no ideas where this code to write
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1