I want to try multiple instances of tor. I tried different datadirectory and pidfile with --DataDirectory and --pidfile but only the first tor instance is listening. I also have different controlport and socksport. When I start the second instance it is closed shortly after I can see it in the list of processes. Here is my command line:
START /B tor.exe --RunAsDaemon 1 --DataDirectory Tor1 --ControlPort 9051 --SocksPort 9050 -f Tor1\torrc.1 --pidfile Tor1\tor1.pid
START /B tor.exe --RunAsDaemon 1 --DataDirectory Tor2 --ControlPort 9052 --SocksPort 9051 -f Tor2\torrc.2 --pidfile Tor2\tor2.pid