I'm working with a CMD batch file that uses the satatement:
It works fine in CMD, but in TCC, Rev3 is not set (or set to nothing).
I haven't been able to find any way to write this so that it works in TCC - I think it has to do with the %'s - but I'd like to find a way that is fully compatible with CMD and TCC.
Any ideas?
Code:
FOR /F "tokens=1-2" %%i IN ('"git show -s --format=%%%ci HEAD 2> NUL"') do (
set REV3=%%i%%j
)
It works fine in CMD, but in TCC, Rev3 is not set (or set to nothing).
I haven't been able to find any way to write this so that it works in TCC - I think it has to do with the %'s - but I'd like to find a way that is fully compatible with CMD and TCC.
Any ideas?