سؤال

I know this sounds like I want to use this for a virus or spyware but what I would like to do is run a bat file that will open a register on a POS system. I have a PHP Point of Sale app that I wrote and I am hosting it on my server.

Clients run it from their browser. I was thinking ActiveX might allow it even if it prompt the users to run the ActiveX. I am not familiar with ActiveX but I have seen how viruses and spyware run.

I don't think Javascript will do it either.

هل كانت مفيدة؟

المحلول

so... if you want to start a batch file running on your system, you can download netcat, and say nc -Lp1212 -e yourbatch.bat

the -L means listen, and on windows means listen repeatedly, but you might wanna use -l on Linux. the p1212 means listen on port 1212, the post i often use. the -e means execute apon connection, and the yourbatch.bat is the file to execute.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top