I have a script package that accepts the url as an argument and before performing the main script operations, it saves the url in the log file. Is there a way to read the log file (the next time I executed it) and add entries to the history so that it can be used (UP KEY) as a revocation history?
it's not that complicated, you need to do log.txtall the data.
log.txt
Use this to add something to it: echo [action]>>log.txt
echo [action]>>log.txt
And this is to read: for /f "tokens=* delims=" %%a in (a.txt) do echo %%a
for /f "tokens=* delims=" %%a in (a.txt) do echo %%a
By the way, this is at @echo off