Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing Batch Files with Parameters
Message
From
14/03/2005 10:43:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00995512
Message ID:
00995513
Views:
15
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform