Pavel, I am not sure why you get fatal errors. I use this technique in several applications - runtime and development - all versions of VFP - without any problems. If you want to investigate those fatal errors you will need to provide more information iro OS, VFP version, SP versions, hardware config, etc. Also would suggest a new thread for that.
In the meantime iro your original question you could try Windows Script Host. See example provided by Thomas in this thread Message #
749253>This works only under development environment, in compiled application I've got 'fatal errors':
>>SET DEFAULT TO "X:\NEWFOLDER"
>>RUN /N &cMainExe
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.