Execute notepad.exe via localhost
-
Thanks a lot for this great plugin!
Admittedly a bit exotic but let me mention it anyway π
If you have on your localhost WordPress installed – and if you..1) have a little Jetty Server running on your machine – built with the Java code here: http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld
2) then you add below..
response.getWriter().println("<h1>Hello World</h1>");
this extra JAVA code..
app_name = request.getParameter("app");
if(app_name == "notepad"){
ProcessBuilder pb = new ProcessBuilder("Notepad.exe", "myfile.txt");
pb.start();
}
3) and then combine HookPress URL http://localhost:8080?app=notepad with hook “publish_post”
..then you start notepad.exe each time you publish a new post :- )Can be used for Point-of-Sale system. Each time a custom post of type of “pos_sale” is “published” the printer connected to the local PC is called and prints the receipt text file.
The topic ‘Execute notepad.exe via localhost’ is closed to new replies.