You can use CreateProcess to execute the batch file. One of the parameters
in the structure passed to CreateProcess is a pointer to a new environment
block.

Or you can use the SetEnvironmentVariable API function to set the variables
for the current VFP application which then would be inherited by any child
process you launch.

You should also run the test again with disabled virus scanner and malware
protection. Using a batch file to send e-mails is pretty much what spammers
would do on a computer. All current scanners monitor behavior of processes,
let them do their stuff and terminate the process or handles once activity
is suspicious. That's the same reason why we get sudden "error reading
file" messages in VFP applications.

-- 
Christof


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cal4qjhh2xckaodvopk1btzfb7wh4h7cq-9otczmisoa3srv...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to