>>How do you force VFP exe to behave like a console app?
>>And, when you created the C# application, did you use the console app?
>
>Yes, C# as a console app.
>
>A lot of what I use for VFP console apps (batch programs) I learned from Rick Strahl
>Thanks Rick!
>
>I attached three files:
>ConsoleLog.prg
>MakeConsole.bat
>Readme.txt
>
>After you compile your VFP app
>Run MakeConsole.bat to convert the exe to a console app.
>
>For VFP:
>Config.fpw as follows
>SCREEN=OFF
>DELETED=ON
>SAFETY=OFF
>RESOURCE=OFF
>
>In your main prg:
>SYS(2335, 0) && Unattended Server Mode
>PRIVATE Console
>Console = ConsoleLog() && Create Console once in your main
>Console.Log("Starting VTC_GPS") && Console.log("Your String") will write to the console AND the log file
>
A question, please. Should the code above (starting with SYS(2335, 0)) be at the top of the MAIN.PRG.
That is, be before my code in the MAIN.PRG?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham