Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid black screen on run command
Message
De
27/02/2017 15:17:48
 
 
À
27/02/2017 06:58:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01648531
Message ID:
01648589
Vues:
45
>>>Hi!
>>>
>>>>>Some guy ( :) ) put up some code on the Fox Wiki:
>>>>>
>>>>>http://fox.wikis.com/wc.dll?Wiki~WScriptShellRun~WIN_COM_API
>>>
>>>openssl.exe is console application.
>>>
>>>I tried
>>>
>>>nres = wscriptshell_run("..\algus\openssl rsautl -sign -in rasi.bin -inkey ..\algus\riktest.key -out allkiri.bin", 0,.t.)
>>>
>>>
>>>But blank screen still flashes.
>>>I also tried 7 and 10 as second parameeter but whole screen blank screen still occurs.
>>>How to remove blank screen or show it minimized or in small window if openssl is called?
>>>
>>>
>>
>>I think that the problem is that may be OpenSSL runs some commands on terminal mode, and any program run by OpenSSL can't be controlled from VFP, just the main program.
>
>OpenSSL does not run any commands. It only preforms mathematical calculations.
>No idea why console window appears.
>Maybe Ed Rauh API:APIRUN class or other solution can used to suppress or minimize console window.

I have downloaded OpenSSL for Windows (http://gnuwin32.sourceforge.net/packages/openssl.htm), and installed it, then I've run this to get a MD5 from a file I have, which shows the DOS Window:
nRet = wscriptshell_run("openssl dgst -md5 c:\users\windows\soapui-settings.xml", 5, 1)
Then I've run this, that do not show the DOS Window:
nRet = wscriptshell_run("openssl dgst -md5 c:\users\windows\soapui-settings.xml", 0, 1)
Don't know why do not work in your case.
Fernando D. Bozzo
Madrid / Spain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform