I realize that this could probably be done easier in any number of other scripting languages but started to do it quick in cmd and now Im curious.
Looking to start a process at an offset to the time that another process started. Lets say 5 minutes to keep it simple. Is there a way to add to the %TIME% variable?
For instance:
start /b foo.exe
at %TIME% + 5 minutes bar.exe
Thanks for any assistance
Extended the "bath code" a little bit:
Outputs 205146 for %__time%
Outputs 20180613 for %__date%
Here is the extra math:
copy.cmd:
I just typed
set/?
and discovered cmd is much better than old bat... :-)Obviously, you can get 62 minutes, etc., I let you do the extra math... :-D
2 PhiLho
thanks
My bath code: