public static void Main() { DEBUG = (System.Environment.GetEnvironmentVariable("DEBUG") == null) ? false : true; DosDriveInventory processor = new DosDriveInventory(); processor.Execute(); string SampleCommand = @"""C:\Program Files\Wise for Windows Installer\wfwi.exe"" /c N:\foobar""X:\src\layouts\msi\MergeModules\mf\mf_lang\x64\retail\es\MF_LANG.wsm"" /o ""x64\retail\es\MF_LANG.msm"" /s /v /l ""x64\retail\es\MF_LANG_msm.log"""; Console.WriteLine(processor.ReportMappedDosDrives(SampleCommand)); }
public void FireToolSpecificEvent(int ProcessID, string CommandLine, string WindowTitle, string DialogText) { // More Info not Passed ! ToolSpecificEventargs arg = new ToolSpecificEventargs(); if (ActionEvent != null) { arg.processID = ProcessID; arg.CommandLine = CommandLine; arg.WindowTitle = WindowTitle; arg.DialogText = DialogText; DosDriveInventory DosDI = new DosDriveInventory(); DosDI.Execute(); arg.MoreData = DosDI.ReportMappedDosDrives(CommandLine); ActionEvent(this, arg); } }