I wouldn't go this route because win.ini is outdated and could be removed in any new Windows version. I'm not even sure if it still works in Vista and later.
>I found a complete example of what you have to do to change the system-wide default printer so that when you call:
>
> Explorer.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, "", "" 'Print, and don't prompt user
>
>it will call the correct default printer... I would appreciate a translation into VFP code of how to call the SendMessage() function from FoxPro (SendMessage() cause all applications to reload the WIN.INI file):
>
>"In a new project, add a listbox and a commandbutton to the form, then add a new module to the form.
>
>In the module, add the following code:
>
< snip >
--sb--