M
M
martensit2018-05-30 08:06:11
C++ / C#
martensit, 2018-05-30 08:06:11

How to execute the following script on VBS through C#?

Here is the VBS script

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "data\tor.exe -f data\torrc -SocksPort 9001 -ControlPort 8001 -DataDirectory data\torf1", 0
WshShell = Null

I need to execute it in c#
So I tried it - it does not work
System.Diagnostics.Process.Start(@"H:\tor-proxy\data\tor.exe", @"-f data\torrc -SocksPort 9001 -ControlPort 8001 -DataDirectory data\torf1");

Is it difficult to do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question