Hi folks,
I try to work on something by calling a VB application from PHP and passing in some argument. Can anyone tell me how ?
I have try something like exec("C:..\appname.exe"); ... but it seem like not working. Somemore, how can i pass in the command line argument ?
Thanks !
You need to put the path and parameters in quotes. That way windows won't interpret the spaces in the path as the end of the path...
exec("\"C:\Windows\Pbrush.exe\" \"C:\windows\clouds.bmp\"");
That would open mspaint with the clouds wallpaper.
i try the exec("\"C:\Windows\Pbrush.exe\" \"C:\windows\clouds.bmp\""); but it seem like not working .... pls advise !
many thanks ...