Trying to set a variable to an SQL statement with a != in it in a DOS batch file but am unable to escape the ! so that both the set and the pipe pass the SQL correctly. No number of ^'s prior to the ! make any difference. Using <> instead of != is just as problematic .... Running with enabledeleyexp...