Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 12:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP] Fatalerror COM("WScript.Shell")

Discussion on [PHP] Fatalerror COM("WScript.Shell") within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
Halfbax's Avatar
 
elite*gold: 51
Join Date: Nov 2008
Posts: 486
Received Thanks: 69
[PHP] Fatalerror COM("WScript.Shell")

Nabend,

heute habe ich das Problem, wenn ich eine Batch-Datei ausführen möchte bekomme ich folgenden Fehler bei diesen Quellcode.

Quellcode:
PHP Code:
<?php
$WshShell 
= new COM("WScript.Shell");
$oExec $WshShell->Run("C:\\Gameserver\\CSGO-Racka\\k.bat"0false);
?>
Fehler:
Code:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Unknown<br/><b>Description:</b> Unknown' in C:\Inetpub\vhosts\*****\web01\starten.php:3 Stack trace: #0 C:\Inetpub\vhosts\*****\web01\starten.php(3): com->Run('C:\Gameserver\C...', 0, false) #1 {main} thrown in C:\Inetpub\vhosts\*****\web01\starten.php on line 3
Ich habe bereits einiges versucht, doch bin ich an einem Punkt angelangt an dem ich nicht weiterkomme.

LG
Halfbax is offline  
Old 12/05/2013, 17:08   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
Quote:
$oExec = $WshShell->Run("cmd /C C:\\Gameserver\\CSGO-Racka\\k.bat", 0, false);
Windows ist lange her, aber ich denke dass war der richtige Syntax dafür.
kissein is offline  
Reply




All times are GMT +1. The time now is 12:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.