Problem Mart

I have the for command working and it does extract data
from the file find.txt and set the DOS variable to FindName
but what it doesnt do is for some reason the DOS variables
are not being read by KIX??? the % sign at the end of %FindName% is black in my color editor which tells me it doesnt work and kix gives and error
and things %FindName% is some kind of comand? what am I doing wrong?
it is exactly as it is below?

 Quote:


Break On

shell "cmd.exe /c for /F %%a in ('findstr /c:DOMAIN\ c:\find.txt') do set FindName=%%a"


? %FindName% + ' DOS variable name'

$username = %FindName%
? $username + ' is displayed from a kix variable.'


sleep 30



this gives me this? not sure why it isnt reading dos variable?
when it type SET at DOS prompt I get a bunch of variables
and for sure this one
FindName=Domain\userA

it is defined but will not pull it Not sure why kix wont read the dos var??


Edited by itdaddy (2009-07-30 10:10 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin