I have a command line php (not mine, from cartocamp) which i can run on command line by issuing the following commands: cd C:\ms4w\apps\cartoweb3 php cw3setup.php --clean php cw3setup.php --install --config-from-file path_conf_file/conf_file.properties What it does is clean the folder system and setup a map application again. I wrote php code that creates this map application, creates the config_file and a batch file. I then wrote the following php command to run this application but it doesnt work and i have no idea why. $run = pclose(popen('start /b '.$batchbase.'\\'.$dir.'.bat', 'r')); PHP: thank you