Execute a Batch file from php script.

Completato Pubblicato Sep 19, 2013 Pagato alla consegna
Completato Pagato alla consegna

Hello Everyone,

Looking for assistance as quick as possible.

I have been struggling to create a PHP script (run from the browser) that would execute a batch file on the server (Windows Server). The batch file runs an executable file. The executable file is a Language compiler and requires two parameters to be passed to it: parameter 1 is the source code and parameter 2 is the compiled file.

Here is the batch file:

@echo off

C:\Inetpub\vhosts\[login to view URL]\httpdocs\compiler\[login to view URL] C:\Inetpub\vhosts\[login to view URL]\httpdocs\compiler\[login to view URL] C:\Inetpub\vhosts\[login to view URL]\httpdocs\compiler\[login to view URL]

---

I am probably doing something really silly but really don't have much time to waste. I would hope that the bidder would produce a very basic script just to execute the above command from php ran from a browser.

I have tried...

shell_exec, exec, system commands but had no joy... Permissions I don't think are an issue because I can run php scripts to create folders & files etc.

I am really looking for a solution asap. Any longer than 3 hours, I can't wait.

Many thanks

Michael

PHP

Rif. progetto: #4945699

Info sul progetto

6 proposte Progetto a distanza Attivo Sep 19, 2013

Assegnato a:

rajeshsonisl

Quick one.

$28 USD in 1 giorno
(980 valutazioni)
8.8

6 freelance hanno fatto un'offerta media di $30 per questo lavoro

leomedina01

Let's do it sir. Please drop me a line, so we can discuss that in details.

$34 USD in 3 giorni
(149 valutazioni)
6.8
hardikshah83

Let's do this today.

$30 USD in 3 giorni
(25 valutazioni)
5.4
gandhivirat

Please see the private message.

$35 USD in 1 giorno
(5 valutazioni)
4.8
acmcoder

Ready to finish this task asap please see PMB

$25 USD in 3 giorni
(10 valutazioni)
3.4
nicweb

Hello We are experienced in what you need and can be an excellent match for your requirements. If you want your project to be handled by true web experts. It's worthwhile to check our PM Thanks

$28 USD in 0 giorni
(2 valutazioni)
2.9