Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ======== [ No Código PHP ] ===================
- <?php
- //executar
- $server = new ClasseExecucao();
- $server->Start();
- //classe
- class ClasseExecucao
- {
- private function Run($sCommand)
- {
- $sCommand = 'cmd /C '.$sCommand;
- $param = new COM("WScript.Shell");
- $param->Run($sCommand, 0, false);
- return true;
- }
- public function Start()
- {
- //caminho
- $exec = 'start "Servidor" "C:\Arquivos de programas\EasyPHP-5.3.6.0\www\porra loka\Servidor\Users\7777\samp-server.bat" ';
- $this->Run($exec);
- return true;
- }
- }
- ?>
- // =========== [ NO samp-server.bat ] ======================
- @echo off
- cd "C:\Arquivos de programas\EasyPHP-5.3.6.0\www\porra loka\Servidor\Users\7777\"
- start samp-server.exe
- // Criado por Bruno da Silva
- // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement