Microsoft KB Archive/105047

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a

-

In the Windows environment, colors, printers, and networks are accessed through the Windows Control Panel. You can directly open the dialog box for these items through your FoxPro programs by using the RUN /N command.

Below are some examples of the syntax you would use to access the Control Panel options. The text (name) below the Control Panel icons is what is typed following "CONTROL.EXE" in the commands.

NOTE: These commands will not work with Windows version 3.0. For example, the RUN /N CONTROL.EXE PRINTERS command will only run the Control Panel; it will not open the Printers dialog box.

To Change Printer Setup
  RUN /N CONTROL.EXE PRINTERS

To Change System Date and/or Time
  RUN /N CONTROL.EXE DATE/TIME

To Change Windows Desktop Colors and Screen Savers
  RUN/N CONTROL.EXE DESKTOP

To Connect or Change Network Drives
  RUN/N CONTROL.EXE NETWORK