ID:1126095
 
I am generating a lot of icon's using math. How can I save these icons as files in to complex directory structures without asking the user to "pick where to save each file".
Just figured it out... in case anyone is curious, I'm doing it like this...

fcopy(file(src.icon), "local_path/file.dmi")
Make sure you do an if(!fexists("local_path/file.dmi")) , if you don't want to overwrite the file :)
In my case, I do want to overwrite, but thanks for the tip.