Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timing and ADIR
Message
De
12/10/2001 18:42:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/10/2001 15:15:12
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00567902
Message ID:
00568024
Vues:
17
>I am using code to run a batch file that puts a file into a specific directory. As so as the file gets to this directory I want to rename the file. I don,t know want the original file name will be because the app that creates it uses a random naming process which I can't change. So When my code runs it first cleans out the directory, runs the batch which places one file into the directory. Now I can do ADIR(myArray) and find the name of the only file then us remname to give the file a logical name. My trouble is the ADIR wants to exicute before the batch file has time to put the file into the directory. How can I pause the ADIR() code until it has an element?

Instead of:
run /n mybatch.bat
you might use:
run mybatch.bat
This will wait for termination. However, I found this doesn't work on all installations of Windows 95.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform