Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pausing for completion of a RUN command
Message
De
20/11/2006 17:25:45
 
 
À
20/11/2006 12:45:24
Brian O'Donovan
Crescent Computers
Cork, Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01171227
Message ID:
01171295
Vues:
8
>Hi all
>
>I am running a RUN command to Export a File from a PDA for stocktaking. After i issue
>the RUN command, I then import the delimited into a table. However, I would like the import
>command to wait until the system has finish downloading the file from the handheld, otherwise the downloading is not complete when I am importing . Any ideas ?
oShell = createobject("WScript.Shell")
lcRun = "cmd"
lnRC = oShell.Run(lcRun, 1, .T.)
? "hello"
If you allow WSH, you can use that for your runs. Manipulate the 3rd parameter and watch for the moment that "hello" is printed. Also manipulate the 2nd parameter (0 or 1). Read the doc on msdn: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform