
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM
|
DISK I/O
Process batch files
Batch processing files is quite easy. Take a look at the PG FN for files in a folder (actually it lists folders in a folder if I remember correctly, I had to modify it to only open what I wanted - file type and add a ':' I think). It's then just a matter of stepping through the list of file names opening each as you go and saving them with a new name at the end of processing.
Interface is more of a problem - I use PG list functions to create a list of all the files in the folder and then let the user select which ones they want to open (All is an option). I use an FJII function to create the "open a folder dialog" (you need the most recent version - old ones can crash).
What I have never been able to get to work is a "Drop folder" type interface, where the user just drops a folder on the program icon and it does it's stuff. The problem is that I never get the right vol. reference no. If anyone knows how to do this I would love to see it.
If you want the code - I can send it privately - though the FJII code would be a problem.
|