Okay guys here is my lame attempt! it doesnt work but
maybe you can kind of see what I want the engine to do
I just want to extract the name from the line
DOMIAIN\username <-- i want to extract the username to a variable?
 Quote:

Break On
SHELL "cmd.exe /c for /F "delims=" %a in ('findstr /c:DOMAIN\ find.txt') do set FindName=%a"
$FindName = shell "cmd.exe /c echo %FindName%"
$UserName = SubStr($FindName, 10, 20)
? $UserName
sleep 30


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