We are using
oWsh = CREATEOBJECT("wscript.shell")
oWsh.Run("BatchFile.Bat", 3, .T.)
to run a batch file from a .PRG. Works fine on 32 bit OS. On 64 bit, we get the Open File - Security Warning; with Run and Cancel buttons.
This process runs with a timer periodically; unattended. How can we disable this Security Warning screen from showing up.
Note:
We were using ShellExecute API, yet VFP does not wait until the batch run finishes; hence resorted to wscript.shell.
Adel
oWsh = CREATEOBJECT("wscript.shell")
oWsh.Run("BatchFile.Bat", 3, .T.)
to run a batch file from a .PRG. Works fine on 32 bit OS. On 64 bit, we get the Open File - Security Warning; with Run and Cancel buttons.
This process runs with a timer periodically; unattended. How can we disable this Security Warning screen from showing up.
Note:
We were using ShellExecute API, yet VFP does not wait until the batch run finishes; hence resorted to wscript.shell.
Adel