From 28b8bf522219339d4264fe9af8ab0055f8c74aad Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 3 Mar 2019 17:11:37 +0100 Subject: Windows: Add command line switch (/m noattach) that is equivalent to UI option "Only create virtual device without mounting on selected drive letter" --- src/Mount/Mount.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 33dd5879..467f4962 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -9135,6 +9135,10 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine) // get the label StringCbCopyW (mountOptions.Label, sizeof (mountOptions.Label), &szTmp[6]); } + else if (!_wcsicmp (szTmp, L"noattach")) + { + mountOptions.DisableMountManager = TRUE; + } else AbortProcess ("COMMAND_LINE_ERROR"); -- cgit v1.2.3