Well now... Guess what? Placing a '+' between them *does* work. So...

This does: @YEAR + @MONTHNO

This doesn't: @YEAR@MONTHNO

Hmmm... In those words of that famous Cuban Band Leader, Ricky Ricardo...

"Lucy, you gotta lotta splainin to do!"

Seriously, could I impose upon someone to explain the difference between this (which works):

If Not Exist ("Y:CompInfo_@YEAR@MONTHNO.txt")

and this? (which doesn't work):

Shell "%COMSPEC% /e:1024 /c DIR /s *.mp? > Y:DSI_" + @YEAR@MONTHNO + "_" + @WKSTA + ".txt"

I'm assuming that I thought if one worked, that the other should too, which is why I hadn't tried placing a '+' between them myself.

Thanks,

Tom