|Hey guys got another one.|
I have a txt file that has single word lines
I would like to simply remove the duplicate entires in the file. After reading the IF info /? pages, I attempted to write a script but its not working for reason. below is what I have:
for /f in %%a (c:\stuff.txt) do (
if NOT %%a==%Compare% echo %%a >> C:\new.txt
if NOT %%a==%Compare% set Compare=%%a
I went to look at the new file it was supposed to create but nothing is there so im sure my code is messed up somewhere.
thanks in advance for any advice!