Error while using command prompt or shell using process_create/3 in SWI Prolog
问题 On Windows 7, when I used process_create/3 in SWI Prolog to open an application like Notepad.exe, the notepad opens. However, it doesn't work for applications that use command prompt. As an example, when I tried to open the command prompt window, using: main :- process_create('C:\\WINDOWS\\system32\\cmd.exe',[] ,[]). which gives an ERROR: Process "c:\windows\system32\cmd.exe": exit status: 1 Similarly, when trying it to open powershell.exe, it doesn't work either. the console just hangs,