Team History

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?

+4
source share
1 answer

it's not that complicated, you need to do log.txtall the data.

Use this to add something to it: echo [action]>>log.txt

And this is to read: for /f "tokens=* delims=" %%a in (a.txt) do echo %%a

By the way, this is at @echo off

0
source

All Articles