07-23-2023, 10:25 AM
When I am on the command line and do this:
"C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:log
a GUI dialog of [TortoiseGit][1] is opened and cmd.exe immediately returns, meaning that I can immediately run other commands like `dir` etc.
Because the aforementioned command is quite long, I created a helper batch file, tgit.cmd, that contains just this:
@echo off
"C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:%1 %*
I can now call just **tgit log** which is great, however, there is one difference: the command-line is blocked until I close the TortoiseGit dialog.
I have also tried
cmd /C "C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:%1 %*
but that doesn't make any difference. How to immediately return from the batch file?
[1]:
"C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:log
a GUI dialog of [TortoiseGit][1] is opened and cmd.exe immediately returns, meaning that I can immediately run other commands like `dir` etc.
Because the aforementioned command is quite long, I created a helper batch file, tgit.cmd, that contains just this:
@echo off
"C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:%1 %*
I can now call just **tgit log** which is great, however, there is one difference: the command-line is blocked until I close the TortoiseGit dialog.
I have also tried
cmd /C "C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe" /command:%1 %*
but that doesn't make any difference. How to immediately return from the batch file?
[1]:
[To see links please register here]