Using Advanced Options
Clicking the More button in the Run Command dialog box reveals a number of advanced
options.
View
Example
Top
To set the current working directory for a command:
- Select Tools|Run Command. Click More to
display Advanced Options.
- In the Run field, enter the command:
dir (on Windows),
or ls -al (on Linux).
- In the Start in field, enter
C:\ (on Windows),
or /home (on Linux).
- Click the Run button to generate a "C:\" directory listing.
Top
You can specify which environment variables will be set for your command.
This can be useful for setting PERL5LIB or PYTHONPATH when running some of your
Perl or Python scripts.
- Select Tools|Run Command.
- In the Run field, enter the command:
set .
- Click New... to add a new environment
variable. For the variable name, enter: PERL5LIB
- Click Add Path... to choose some value for PERL5LIB
(the actual value you choose does not matter for this example). Click
OK.
- Click the Run button to display all environment variables. Scroll
through the results on the Command Output tab until you find the PERL5LIB
setting.
Top
You do not have to run commands on the Command Output tab. If you want to
run a GUI program instead, you can change the Run in option to No Console (GUI
Application).
- Select Tools|Run Command.
- In the Run field, enter the command:
mozilla
If you do not have the Mozilla browser installed, choose some other GUI application
to run. For example, on Windows, you might want to run either the iexplore or
notepad command.
- From the Run in drop-down list, choose No Console (GUI Application).
- Click the Run button to open the GUI application instead of the
Command Output tab.
You can also run commands in a new console window:
- Select Tools|Run Command.
- In the Run field, enter the command:
dir
- From the Run in drop-down list, choose New Console.
- Click the Run button to run your command and open a new console window
instead of the Command Output tab.
|