This meant that you did not need to create and execute a batch script (with one command), and also not to run the tool on the command line (as shown below):
Exec('cmd.exe', '/c "net localgroup ..."', '', SW_SHOW, ewWaitUntilTerminated, Result);
But instead, you simply execute the tool:
Exec('net.exe', 'localgroup ...', '', SW_SHOW, ewWaitUntilTerminated, Result);
The same applies to the [Run] section:
[Run] Filename: "{cmd}"; Parameters: "/c ""net localgroup ..."""
It would be better:
[Run] Filename: "net.exe"; Parameters: "localgroup ..."
TLama
source share