I h开发者_JAVA百科ave a file - file.bat
- which is located on a different server than our web site. I'd like to be able to run this file within our site; however, I'm not too familiar with .bat files, usage, etc. and was curious if anyone knows how I may be able to execute this from a different server?
.bat
or batch files are scripts. They need an interpreter to run, normally integrated into the shell/commandline.
If you want to execute such a shell-script from remote, you need a remote-shell. You simply connect to the shell from remote and then you execute the shell-script in that shell.
So the other system that has the .bat
file in question must offer a remote shell you can connect to via PHP and then you're ready to go.
However even if technically possible this does not mean that it makes sense. What does the .bat
file do?
精彩评论