redarrow Posted March 18, 2007 Share Posted March 18, 2007 I want to exec dos then within dos exec another.exe then write to that program with database varables or session's but how? please give your example please cheers. how do you write to the last.exe program to give it it's command? <?php exec("C:/WINDOWS/system32/cmd.exe/program.exe"); ?> Link to comment https://forums.phpfreaks.com/topic/43211-exec-a-exe/ Share on other sites More sharing options...
per1os Posted March 18, 2007 Share Posted March 18, 2007 exec("C:/WINDOWS/system32/cmd.exe/program.exe -parameters -here"); You will need to see what the command line options are of the program and pass the parameters accordingly. Link to comment https://forums.phpfreaks.com/topic/43211-exec-a-exe/#findComment-209950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.