sindresorhus/opn







Do you want to work on this issue?
You can request for a bounty in order to promote it!
How do you close a program once you've opened it? #152
doverradio posted onGitHub
Hello, I was able to successfully open up a program using your library in Windows 10. Here is the code:
const open = require('open');
// Opens the program WordPerfect in the default image viewer
(async () => {
await open('C:\\Program Files (x86)\\Corel\\WordPerfect Office X4\\Programs\\wpwin14.exe', {wait: true});
console.log('Did WordPerfect open?');
})();
However, it's not clear how to close this once I've completed the tasks I need within that opened program.
How do I close this after I've completed using the opened program?