Programmatically Accessing Windows Control Panel OptionsLast reviewed: June 27, 1995Article ID: Q105047 |
The information in this article applies to:
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 REFERENCESOnline Help file, RUN command
|
Additional reference words: FoxWin 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |