Menu

PwshSystemProcess

ENGITEX

The class allows starting a process with PowerShell. No specific version of PowerShell is required for this. The main benefit of using the class is that a new process will be run in a separate console window.
The constructor is PwshSystemProcess(String executableFile, ArrayList<String> args, int startDelaySeconds)

And then:

try {
    pwsp.start();
} catch (SystemProcessException spe) {
     // if got here then it can only be a problem with powershell
     System.out.println("check powershell: " + spe.getMessage());
    return;
} 

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.