Quote:

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


Like this works onthe command prompt
and then you type the word SET and it shows up
FINDNAME=DOMAIN\USerA

but for some reseason it sets it find in kix shell but
doenst retain the value of FINDNAME?
in dos take out the % to leave %a at both ends and then it works if you want to test it yourself but
man we have got to be close huh?
like I said it runs find in kix and even says
SET FINDNAME=DOMAIN\UserA
but when SET is run after in shell "cmd.exe /c SET"
it is gone. but when run in actual DOS prompt it works great???


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