[SOLVED] shell_exec
Posted: Thu Feb 15, 2007 8:40 am
afternooooooon.
at the moment I'm using:
to run the command SET, a DOS command. When I run this, I'm greeted with a big dump, similar to when you run SET in DOS.
At the moment, I'm only trying to wedge 'SystemRoot' out of there, but to no avail I've triied shell_exec(set=SystemRoot), shell_exec(set['SystemRoot']), and I can't figure out how to access it (whether its an array, an object, super global, yada yada).
Anyone have any ideas?
Thanks in advance guys
at the moment I'm using:
Code: Select all
print_r("<pre>" . shell_exec(set) . "</pre>");At the moment, I'm only trying to wedge 'SystemRoot' out of there, but to no avail I've triied shell_exec(set=SystemRoot), shell_exec(set['SystemRoot']), and I can't figure out how to access it (whether its an array, an object, super global, yada yada).
Anyone have any ideas?
Thanks in advance guys