Microsoft KB Archive/105047

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Programmatically Accessing Windows Control Panel Options

ID: Q105047



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 


REFERENCES

Online Help file, RUN command

Additional query words: FoxWin 2.50

Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: August 18, 1999
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.