|Thanks, Toni, but there appears to be an issue in the set command.|
No matter what syntax I try, I'm not getting the set command to behave in a reliable fasion.
If I'm understanding everything correctly:
set L=" "
Should place a space in the L variable. This doesn't appear to happen when running the job. L is whatever L was when it was last closed, and I need this to happen within the batch file.
I have tried to come up with an alternate solution just using the filename, which contains the pertinent informatino, but it all comes back to the set command in DOS (I've tried two different O/Ses, Win2K3 and Win7) and neither sets the variable, something which SHOULD be simple.
I even used the logic you provided and still no happiness.
Is there something wonky about setting variables within a for statement that I'm missing?