I guess my original post didn't make it clear, but I was coding a C++ service wrapper using the example give by msdn. Anyway I got it working. however, I assume that just using that srvany is probably coded better than mine, so I just used that instead. Thanks for the help. On a side note, the reason that I couldn't get my service to work originally was because my bat file would call nginx.by knightpraetor - How to...
works. Though i'm still really confused as to why I couldn't host the bat file like svrany. I guess what i really want is to see the source from svrany. I tried adding a line to the bat file to just write a line of text to a file, and I then ran that bat file from the service wrapper I created. This resulted in the new text file being made successfully. So i know the bat file was run. if that'by knightpraetor - How to...
I was trying to setup Nginx, so I wanted to make a small service so that I could run it without logging on. I have a bat file that calls both nginx and a php server, shown below start C:\wiki\nginx-1.7.11\nginx.exe IF errorlevel 1 goto EXIT_FAILURE start c:\wiki\php-5.4.39-Win32-VC9-x86\php-cgi.exe -b 127.0.0.1:9000 -c c:\wiki\php-5.6.7-Win32-VC11-x86\php.ini IF errorlevel 1 goto EXIT_by knightpraetor - How to...
![]() |
![]() |
![]() |
![]() |
|