Jump to content

Execute program with Command Line Parameter that is a Variable


This topic is 5674 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hey All, big issue here trying to figure out.

I have a program i created to convert a pdf file to an earlier version (compatible with version 4.0)

The way my program works is the user enters the directory and filename at the command line.

For example, to convert pdf named testing.pdf you would run this:

c:programspdfconverter.exe c:pdfstesting.pdf

I originally required quote's around the directoryfilename.pdf so that it knew it was one parameter, but now i just pull the entire command line and get it that way, i figured it would be easier on filemaker pro

The problem is, that i want this to be automated, i have my script right now save the file as a pdf, it varries depending on the record i'm on, so, what i have is a set variable

I have $pdffile = "c:pdfs" & [invoice number] & ".pdf"

any help would be GREAT

thanks guys!

Link to comment
Share on other sites

You need to have quotes around the path & filename if there are spaces in them. But you don't need to have your users type them. Have your script check for spaces and quotes, if there are spaces and no quotes, use the Quote() FileMaker function.

Link to comment
Share on other sites

This topic is 5674 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.