locked
How to mount a .iso file from command line?

    Question

  • Where can I find documentation on how to mount / dismount an .iso file from a command line? Is there also an API that I can call from C# to do it?
    Monday, September 19, 2011 6:04 PM

All replies

  • AttachVirtualDisk

    If you want to control the drive letter instead of letting windows to assign one, use ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER and mount the volume manually.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, September 19, 2011 7:05 PM
  • AttachVirtualDisk

    If you want to control the drive letter instead of letting windows to assign one, use ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER and mount the volume manually.




    Is this a Win32 API call? Do you have an example on how to call from C#?

    What about a command line?

    Monday, September 19, 2011 7:23 PM
  • http://www.google.com/codesearch#search/&q=AttachVirtualDisk%20lang:%5Ec%23$&type=cs

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, September 19, 2011 7:35 PM