STARTUPINFO structure:
GetStartupInfo
How to prevent users from accessing the Windows Desktop and from switching to other applications
Reading STARTUPINFO structure for the current VFP session
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)