The IDQL utility is an interactive tool that lets you enter ad hoc DQL queries against a repository. IDQL is also a useful as a tool for testing and other tasks that support an application or installation because it allows you to run scripts and batch files.
idql(32) [-Uusername|-ENV_CONNECT_USER_NAME] [-Ppassword|-ENV_CONNECT_PASSWORD] [-Ddomain]
-n Removes numbering and the prompt symbol from input files. This argument is used primarily for scripts.
go Executes a DQL statement and clears the query buffer
shutdown Issues a Shutdown method that shuts down the Content Server gracefully. You must be a superuser or system administrator to user this command. When shutdown is complete, the utility exists.
Each command must be entered on a separate line. A command cannot appear on the same line as a query, nor can two or more commands appear on one line.
There are two ways to execute queries in a batch using IDQL:
1. Use the input file option in the IDQL command line
2. Use the @scriptfile command