我爲.txt文件創建了一個上下文shell菜單。 其'行爲'與'用記事本編輯'選項類似。 我能夠打開「記事本」上點擊使用此代碼菜單 - subKey.SetValue("", "C:\\Windows\\System32\\notepad.exe");
//subKey is the newly created sub key - The key creation part works fin
如果我要編寫一個控制檯應用程序作爲新進程啓動另一個控制檯應用程序,並使用默認的「UseShellExecute」和「CreateNoWindow」值,則結果是控制檯應用程序窗口旁邊會出現一個新的命令行窗口: UseShellExecute=true and CreateNoWindow=false
現在,如果我是使用下面,將創建新的窗口,但在啓動過程的輸出會出現啓動它的應用程序的窗口上: Us