>Thanks for your reply. (I remember that you had helped me before with using VFP's registry class.) How do I use the Window Script Host's Network object to set the default printer? Is it easier/better to use than your INIfiles class?
>
Assuming that you know the name of the printer (from AGETPRINTERS(), for example):
oWSHNet = CREATEOBJ('Wscript.Network')
oWSHNet.SetDefaultPrinter(cNameOfWindowsPrinter)