Bruce,
There maybe a way to replace the functionality of the DOS print utility entirely with VFP code.
Does the test machine have the same DOS PATH? the access_denied is pretty hard to tell exactly what was denied, the utility itself or a file the util was trying to use.
You can use the last parameter of ShellExecute() to control the visibility of the window.
>The weird thing is that the call to ShellExecute() to run this little print utility works fine here in development, but on the test machines an error code of 5 is generated. In my tests here in dev I've renamed the utility so that ShellExecute can't find it, and I get the expected error code of 2, not 5.
>
>Is there an alternative way to achieve the same desired effect of not having the DOS session window flashing up on the screen?