So, i need to know how can i identify my test.bat file inside my project, what i'm trying to do is this:
<?php
$v1 = "test one"; //this is domain
$v2 = "test two";
$bat_file = "folder/test.bat ".escapeshellarg($v1)." ".escapeshellarg($v2);
$output = null;
system($bat_file, $output);
?>
bat file:
@echo off
set test1=%1
echo example one %test1%
set test2=%2
echo example two %test2%
i need to set a directory to find my test.bat file, how can i do this? i know if i remove the "/folder" i can do what i want, but what if i need to put a directory to my .bat file? how i'm supposed to do this?