Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.34k stars 581 forks source link

Batch files, etc. to launch it hidden with the output redirected to a log file #7

Closed Zero3K closed 7 years ago

Zero3K commented 7 years ago

I have made a ZIP file containing the files needed for it to do what I wrote about in the title and am attaching it to this issue. You can modify the batch files accordingly. I hope it helps :).

EDIT: I am replacing it with a better version.

gnirehtet.zip

rom1v commented 7 years ago

Hi,

Thank you for your work.

I am very interested by a gnirehtet.bat with the same behavior as the gnirehtet bash script. It seems you know the BATCH syntax well, do you think it's possible?

I guess your current scripts may be convenient on windows because you can double-click on relay.bat, then "double-click" on gnirehtet.bat, instead of calling a script with arguments. However, with a gnirehtet.bat similar to the existing bash, those scripts might just delegate the work to gnirehtet.bat with the expected arguments.

What do you think?

Zero3K commented 7 years ago

I am not that knowledgeable in making batch files. Anyways, the only batch that needs running is gnirehtet.bat since it runs relay.bat via JStart (which is used to hide the console that relay.jar uses).

rom1v commented 7 years ago

OK. Thank you for the samples.

However, they are too specific (jre1.8.0_112, C:Program Files\gnirehtet…), and they use binaries that I would not include (jStart.exe,adb.exe,*.dll`…).

But thanks, that may help some people on Windows willing to use it the same way.

If you manage to implement a generic gnirehtet.bat similar to the bash script, please open a PR ;)

MegaZeroX10 commented 4 years ago

How do I get the batch to not show "Error: Not found; no service started."?