Quantcast
Channel: ExeOutput for PHP - G.D.G. Software Forum
Viewing all articles
Browse latest Browse all 1024

Problem with exec() and Powershell

$
0
0

Hi there :slightly_smiling_face:

I have a problem running Powershell commands with ExeOutput. I have a script that reads data from the %ProgramData% folder. If it is not in the C: drive, I need to find it. To do this, I need to read which drives are local hard drives (as opposed to any network drives), and I am doing this by using exec() and a Powershell command.

The script runs fine in a browser, but refuses to work from ExeOutput. It just hangs and does nothing. When I close my app, the window closes but the process is still running in the background and does not die.

This is my code:

Any help would be appreciated.

Many thanks,

Zoe

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1024

Trending Articles