I am trying to run a test script to see if a bigger project I have in mind will work. On my wamp server, I have my index calling this separate php script:
<?php
exec("cd C:\Program Files (x86)\Notepad++");
exec("notepad++.exe");
echo "didn't crash";
?>
All I need the program to do is open notepad++. I have tried putting a shortcut in the same directory at which it's called (www), running a shortcut from the desktop, and now accessing the exe itself. Every time I use it, it runs and says "didn't crash", yet it never opens notepad++.
The php manual for exec(http://php.net/manual/en/function.exec.php) shows an example that seems too simple, yet it works. So does the system() example.
All I need is access to the cmd so I can call on files. Right now it is just exe's, but it will eventually be jar's/py's that will post to text files.