Hi
I'm trying to run BAT file from a web page. Php is on IIS (php5isapi win 2003 serv), the page is accessed via ssl (
https://) and has anonymous access disabled. So I login on a page as my_user to access the page. Below is the php code that doesn't want to run as expected. When I login directly to the server as my_user I can run this bat file without any problem, so it's not a permissions problem (for this user).
The output looks like this:
kod: 1
ostatnia linijka:
string(0) ""
So as you see it returns an empty string with the return code 1.
This is the bat file:
echo off
echo "Usuwanie katalogu ze stara wersja"
rmdir /S /Q c:\archiwum\trunk
echo "Eksport z repozytorium (trunk)"
cd c:\archiwum
svn export svn://adso.nawigus.pl/test
/nawigus/t
runk
echo "Kopiowanie do test.nawigus.pl"
xcopy c:\archiwum\trunk C:\Inetpub\nawigus\test /f /s /e /y
echo "Kasowanie plikw base.dist.php, path.dist.php i skompilowanych szablonw"
del /Q C:\Inetpub\nawigus\test\in
c\base.dis
t.php
del /Q C:\Inetpub\nawigus\test\ww
w\path.dis
t.php
del /Q C:\Inetpub\nawigus\test\in
c\tpl\temp
lates_c\*.
*
echo "Gotowe"
Any ideas?
Start Free Trial