|Oops... I accidentally said "hoe" instead of "how"!|
I have this line of code at the start:
and i want a line of code that measures the time between %start_time% and the current time. I then want to translate it into seconds and have this code:
//tim being the time between now and start.
Can you help? I was thinking of using the path variable alteration that is under "set /?" in cmd prompt but am not sure how this will work to my advantage....
Variants of PATH would be like(fyi type "set /?" in cmd and it will tell u all this[Very handy :) ]) :
%TIMEPATH:":"=% //this will delete ALL :
%TIMEPATH:~-2% // This will take the last 2 characters of the TIME var
%TIMEPATH:~7,2% // This will extract 2 characters starting from the 6th one. (TIME=HH:MM:SS.ML) (ML=milliseconds)
%TIMEPATH:~0,-5% // would extract all but the last 5 characters
Note: this works with any var (%!var!PATH% ect.)
Also I need a random number code! not:
cause that goes up to like 32,000ish. I need one that's 1-100 I tried:
if /i %ran% GTR 100 goto random
but that code takes between instant and like 1 minute. I want one that is REALLY fast!