Jump to content

problem in executing an exe on local WAMP environment from PHP


vinaynahata

Recommended Posts

I am trying a very simple thing , just to run an exe on local WAMP environment.The code below launches does launch notepad(can see in task manager) but doesn't show up.I want test.txt to be opened in a window.

 

<?php

$WshShell = new COM("WScript.Shell");

$oExec = $WshShell->Run("notepad.exe C:\wamp\www\test.txt", 3, true);

?>

 

I have tried exec as well .Same problem.What modifications are needed?

Try psexec, is part of the pstools suite.

http://technet.microsoft.com/en-us/sysinternals/bb897553

 

Also go to apache service in control panel and allow interaction with desktop.

Set any login credentials as well.

 

Ant other questions about psexec can be answered in the psexec forums.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.