Files with and without path

Hallo,

my "Help and Manual" projects are in different folders. But all builded PDFs should stored in one outputfolder.

For compilation I need filenames with path and for output only filenames to set my own path in front.

How can I solve this problem?

Thanks for help

 

Hi Jorg,

Thanks for post. I’m afraid that I’m not quite sure what you mean. For Help & Manual 4, you should be able to specify a full path for the Project File (on the project tab) and a different full path for the output PDF file (on the PDF Options tab.)

What version of Help & Manual are you using?

Finally, if nothing else works than can you use a Move File(s) action to move the PDF files to the correct output folder (although this should not be necessary.)

Regards,

Angus

Hi Angus,

thanks for reply.

Our Help & Manual Version is 4.3.1

I try to compile many Help&Manual-Projects recursively.

For example

Projects are in \HM\Project1\0010, \HM\Project1\0011, and \HM\Project2\0200

Outputdirectory for all is Help\PDFs


My Problem is that I can´t specify only the outputdirectory without a filename.

If there is no other way, how can I make a Move File(s) action to bring the PDFs in one directory?

Thanks for help

Jörg

Hi Jorg,

I'm afraid I'm still a little confused about what you need to do. How many actions are you using?

If you're using a separate Help & Manual action for each project, then you should be able to set each one up with a path for the project, and the path for the output file.

If you're using a File Iterator to select each project, you'll need to be a bit tricky.

Say if you have a variable called HMProject which is set to the full path of the project file.

Create a second variable called HMName. Then add two Path Manipulation actions. Set the first one like this:

Input -> From Variable -> HMProject

Output -> Specify Output Variable -> HMName

Path Functions -> Extract File Name

... and then set up the second one as follows:

Input -> From Variable -> HMName

Output -> Apply to Existing Value

Path Functions -> Change File Extension -> .PDF


... then you can just set up the H&M action to build project %HMProject% to output PDF file \Help\PDFs\%HMName%

This is getting pretty complex, so please just let me know if you'd like me to mock up a demo project for you, or if I've misjudged your requirements entirely.

Regards,

Angus

Hi Angus,

that´s it. I didn´t search the “path manipulation” action in the “string manipulation” section.
Now it works.

thank you for helping a blind man
Jörg

Hi Jorg,

Glad you got it sorted out.

Regards,

Angus