shellexecute's documentation says
The example passes only 4 arguments. Should perhaps be
utils.shellexecute ("cmd", "/C dir > test.txt", GetInfo (68), nil, 0)
Quote:
You may also want to pass 0 as the fifth argument (hide the window) in order to stop a command window flickering into view and then disappearing, for example:
utils.shellexecute ("cmd", "/C dir > test.txt", GetInfo (68), 0)
You may also want to pass 0 as the fifth argument (hide the window) in order to stop a command window flickering into view and then disappearing, for example:
utils.shellexecute ("cmd", "/C dir > test.txt", GetInfo (68), 0)
The example passes only 4 arguments. Should perhaps be
utils.shellexecute ("cmd", "/C dir > test.txt", GetInfo (68), nil, 0)