Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.