Code: Select all
MainApp.RunApp("echo", "test > test.txt", true, true, 0);
Code: Select all
MainApp.RunApp("echo", "test > test.txt", true, true, 0);
Actually, it would be cool to use CMD commands in scripts, but I just figured out how to solve my script-related problem without using echo. Please move it down on your to-do listpjj wrote:(If it's not possible now, please treat it as a feature request.)
Code: Select all
MainApp.RunApp("c:\\windows\\system32\\cmd.exe", "/c (echo Yes, you can call command line from a script!)", false, false);
Code: Select all
MainApp.RunApp("c:\\windows\\system32\\cmd.exe", "/c (del c:\\temp\\*.* /q)", false, false);
Code: Select all
var filename = "readme.txt";
MainApp.RunApp("c:\\windows\\system32\\cmd.exe", "/c (del c:\\temp\\" + filename + ")", false, false);