# What are some examples of External Tools configurations?

- Open file in **Internet Explorer**

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>C:\Program Files\Internet Explorer\iexplore.exe</code></td>
    </tr>
    <tr>
    <td>Arguments</td>
    <td><code> $(Path)</code></td>
    </tr>
    <tr>
    <td>Initial Directory</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Icon Path</td>
    <td><code>C:\Program Files\Internet Explorer\iexplore.exe</code></td>
    </tr>
    <tr>
    <td>Check <b>Save File</b></td>
    </tr>
    </tbody>
    </table>
- Open **File** **Explorer**

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>%WinDir%\explorer.exe</code></td>
    </tr>
    <tr>
    <td>Arguments</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Initial Directory</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Icon Path</td>
    <td><code>%WinDir%\explorer.exe</code></td>
    </tr>
    </tbody>
    </table>
- Open **Command Prompt**

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>%WinDir%\system32\cmd.exe</code></td>
    </tr>
    <tr>
    <td>Arguments</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Initial Directory</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Icon Path</td>
    <td><code>%WinDir%\system32\cmd.exe</code></td>
    </tr>
    </tbody>
    </table>
- Compile with **Visual C++**

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>%WinDir%\system32\cmd.exe</code></td>
    </tr>
    <tr>
    <td>Arguments</td>
    <td><code>/k &#34;C:\Program Files\Visual Studio\Vc7\bin\vcvars32.bat&#34;&amp;&amp;cl $(Path)</code></td>
    </tr>
    <tr>
    <td>Initial Directory</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Icon Path</td>
    <td><code>C:\Program Files\Visual Studio\Common7\IDE\devenv.exe</code></td>
    </tr>
    <tr>
    <td>Check <b>Save File</b></td>
    </tr>
    </tbody>
    </table>
- **Run current file** as a program

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>$(Path)</code></td>
    </tr>
    <tr>
    <td>Initial Directory</td>
    <td><code>$(Dir)</code></td>
    </tr>
    <tr>
    <td>Check <b>Save File</b></td>
    </tr>
    </tbody>
    </table>
- Search **Google** for a word at cursor or a selected text.

    <table>
    <tbody>
    <tr>
    <td>Command</td>
    <td><code>http://google.com/search?q=$(CurText)</code></td>
    </tr>
    </tbody>
    </table>

These are some of the predefined arguments for the **Command**, **Arguments**, **Initial Directory**, and **Icon Path** fields.

<table>
<tbody>
<tr>
<td><code>$(Path)</code></td>
<td>The full path name of the file.</td>
</tr>
<tr>
<td><code>$(Dir)</code></td>
<td>The directory name of the file.</td>
</tr>
<tr>
<td><code>$(Filename)</code></td>
<td>The file name without its extension.</td>
</tr>
<tr>
<td><code>$(Ext)</code></td>
<td>The file name extension.</td>
</tr>
<tr>
<td><code>$(CurLine)</code></td>
<td>The logical line number of the cursor.</td>
</tr>
<tr>
<td><code>$(CurText)</code></td>
<td>The selected text if selected, or the word at the cursor if not selected.</td>
</tr>
</tbody>
</table>

You can find more by clicking on the “\>” button.

You can also specify environment variables, such as `%WinDir%`.
