Reply to thread

Ok, it seems to work :


[CODE=C#]using (var ps = PowerShell.Create())

        {

          Log.Debug("Mount-DiskImage {0}", IsoFile);

          ps.AddCommand("Mount-DiskImage")

            .AddParameter("ImagePath", IsoFile)

            .AddParameter("PassThru")

            .AddCommand("Set-Volume").AddParameter("DriveLetter", _Drive.Remove(_Drive.Length - 1));

          ps.Invoke();

          Log.Debug("Mount-DiskImage DriveLetter {0}", _Drive);

        }[/CODE]


I will test more later :) need to go to bed lol


Top Bottom