May want to give this a try.

"
To use the FOR command in a batch program, specify %%variable instead
of %variable. Variable names are case sensitive, so %i is different
from %I."

Also you may want to try

Code:
  

cd \fastpush\
Shell "%comspec% /c for /F " + "tokens=1" + " %%i in ($WSListing) do call vnc7 %%i /user $AdminUser $AdminPW /log /ultra"



Edited by Chewmanfoo (2004-04-09 03:39 AM)