| set str=%HOME% | | ::%HOME%为系统变量,值为D:\Cad\SPB_16.6 | | set var=%str:\=/% | | | | set "load_b=loadi("%var%/bbbb.txt")" | | echo %load_b% | | set "a_load=%HOME%\aaaa.txt" | | if exist %a_load% ( | | for /f %%i in (!a_load!) do ( | | if !load_b!==%%i ( | | goto gogogo | | ) | | ) | | ) | | echo !load_b!>>!a_load! | | :gogogo | | | | ::为了实现将load_b=loadi("%var%/bbbb.txt")这行文字放到aaaa.txt中,若已有这行,则不加COPY |
|