Directory manipulation as part of an Extend Script
Hello,
I am working through my first extend script.
FrameMaker 12
Windows 10
Given a specified path (say "C:\MyFiles\FM_Format") containing a list of *.fm files which belong to a frame maker book, I want to save a *.mif copy of these files into a different folder (C:\MyFiles\MIF_Format).
I've figured out how to iterate over an open book, open each file and how to save the file as an mif file.
What remains for me to do is
1. Determine if the MIF_Format exists.
2. If it does not then create it.
3. Otherwise, clear all the files in that folder (delete them).
I have seen another post indicating that I could write a batch file to perform these three tasks and then I could invoke this batch file from within the script, which is great. I was just curious to know if there were native functions that could perform the same?
Thanks for any feedback.
Egan.
