Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Batch Files with Parameters
Message
De
14/03/2005 10:43:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00995512
Message ID:
00995513
Vues:
14
>I have a simple batch file named (pdmimp) which basically plays around with some of the proerties of any image that you run this file on. For example I have a tif image name pic.tif and when I run the batch file the batch file passes the name of the file into its program and exectues some properties. Basically if I goto a command line in windows and type:
>
>pdmimp pic.tif
>
>It will work fine. Pdmimp is the batch file and pic.tif is the image file.
>
>I would like to execute this from a program in foxpro. I have tried:
>
>run pdmimp pic.tif
>
>But this doesn't work. Any ideas?
>
>Many Thanks

I think you must specify the full filename for the batch file, or else it will not be found:
run pdmimp.bat pic.tif
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