Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RUN /N somePCAnywhere script fails
Message
De
06/12/1999 10:17:44
 
 
À
06/12/1999 10:13:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00298300
Message ID:
00299176
Vues:
22
>>>I can double click on an OSF file which will lauch dialer and run script. When I try to run this command from VFP6.0 sp6 I get a RUN command failed message. Anyone running PCAnywhere scripts from VFP? How? I found nothing either Symantec or M$ lack of kb.
>>
>>You need to use the Win32 API ShellExecute() to launch a document; RUN won't. There's an implementation in the FFC. Alternatives include coding the API call yourself, or using the Shell.Application automation object's Open method.
>
>
>Actually for running file transfer scripts in pcAnywhere you :
>
>RUN c:\program files\pcAnywhere\AWREM32.exe YourScriptFile.osf
>

Explicitly launching the app works; the idea was that if you can double-click on it from Explorer, there's a server already registered on the system, and you can use ShellExecute() to exploit that rather than having to know where the app is installed.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform