CrowHitsJet
01-10-2004, 21:44
I'm trying to make a batch file based on a simple command line for converting files from .jpg to .pdb (for viewing on Palm OS).
The command line to do so is as follows:
par c -a stream name_of_file.pdb "name_of_file.jpg" MMPA MMPL name_of_file.jpg
I don't think it's necessary to know what those attributes are, I don't understand it but it works just fine. If I copied a jpg named name_of_file to that folder and ran the .bat it'd spit out name_of_file.pdb - wonderful.
However, simple as it is to run the batch file I still need to edit it to change the name_of_file for each .jpg I want to convert which somewhat defeats the purpose. I'd love for it to prompt me for the filename as I ran the .bat but can't find out how. The three instances of "name_of_file" will all be the same so it only needs to ask once and put it in those three places. Can anybody help?
The command line to do so is as follows:
par c -a stream name_of_file.pdb "name_of_file.jpg" MMPA MMPL name_of_file.jpg
I don't think it's necessary to know what those attributes are, I don't understand it but it works just fine. If I copied a jpg named name_of_file to that folder and ran the .bat it'd spit out name_of_file.pdb - wonderful.
However, simple as it is to run the batch file I still need to edit it to change the name_of_file for each .jpg I want to convert which somewhat defeats the purpose. I'd love for it to prompt me for the filename as I ran the .bat but can't find out how. The three instances of "name_of_file" will all be the same so it only needs to ask once and put it in those three places. Can anybody help?