|thanks for the sympathy. i see a couple of weird "device drivers" running as TSRs and i'm kind of spooked till|
i can get my kludge sterilized of them.
as for your conundrum:
this reminds me of another situation awhile back, where i did indeed set !xx!=!xx!, similar to what M2go commented:
in that case, it was used to filter out any item that had already been entered, (by testing IF DEFINED !XX! then already entered, in other words, a unique value for each entry)
it seems like you could:
set xx=%%a (where %%a is incoming from the text file)
set !xx!=!xx! (this creates a variable whose name is the word from the text file and whose value is its own name, thus
making its name accessible to echo-output etc.)
echo !xx! is: !xx!
i agree it's kind of gnarley, but i know it can be done...
the more i look at your issue, the more confused i get!
(at least i'm in good company LoL!) it "looks" like you just want to remove (6 max) device-drivernames from a list, but I know i'm missing the point. (something to do with that part about "locked inside a script" and "encoded", i'm sure).
my initial post might still be an option but i don't think it needs to become that involved. k.i.s. & always shave with occams razor. Sorry i'm so muddled up.
ps: this is minor, but findstr can do all this in one go:
find /v "%V1%" < drvlist.txt > list.001
find /v "%V2%" < list.001 > list.002
find /v "%V3%" < list.002 > list.003
find /v "%V4%" < list.003 > list.004
find /v "%V5%" < list.004 > list.005
find /v "%V6%" < list.005 > last.txt
findstr /i /v "%v1 %v2% %v3%..."