Files
Opener.Net/Readme.md
Tommy Parnell 67ec0fc3e7 update readme
2017-03-05 16:27:47 -05:00

660 B

This provides a cross platform way to launch processes on mac/linux/or windows. Inspired by opener

Simply call Opener.Open() with whatever commands you need

common examples


Opener.Net.Opener.Open("http://google.com"); // launch a browser window

Opener.Net.Opener.Open("npm install", processStartInfo: new ProcessStartInfo(){ WorkingDirectory = "c:/projects/npmrest"}); //npm install in a specific directory

Why?

Because Windows has start, Macs have open, and *nix has xdg-open. At least according to some guy on StackOverflow. And I like things that work on all three. Like Node.js. And Opener.