Using RunProgram to start cmd.exe and execute commands
I want to use RunProgram to run an executable like notepad.exe through cmd.exe.The below will return the correct directory but when I add another command to the options list "notepad.exe" I get an error that the system cannot find the path specified.cmd1 = "/k cd /d " || "C:\Windows\System32";
RP = RunProgram(
Executable( "CMD.EXE"),
Options( {cmd1} ),
ReadFunction("text")
);
I have also seen t...