coding UTF-8; import File; import Process; // ---------------------------------------------------------------------- // A VCSSL program that runs example.exe and displays its standard output // ---------------------------------------------------------------------- // Create a process for example.exe // ("argA/B/C" are the arguments passed to the program) string programPath = getFilePath("example.exe"); string processArgs[] = { programPath, "argA", "argB", "argC" }; int processID = newProcess(processArgs); // Set character encodings for standard input/output/error setProcessInputEncoding(processID, "CP932"); // or "UTF-8", etc. setProcessOutputEncoding(processID, "CP932"); setProcessErrorEncoding(processID, "CP932"); // Start running example.exe startProcess(processID); // Event handler for receiving standard output void onProcessOutput(int sourceProcessId, string text) { print(text); // Display the received text as-is } // Event handler for receiving standard error void onProcessError(int sourceProcessId, string text) { print(text); // Display the received text as-is }