I have another question and I think this topic is right place to ask it (btw sorry for asking to many question)
I have two file, one is my main file and script work with it most of times
other file is just a simple file store size of first file with some other information
what I want to do is first export all files from main archive (I don't have any problem in export)
after that when I try to import them back I need to
open Both first and second file
first (before re-import) get size of original first file and store it in some variable, and then import files back to archive, after all file imported to archive get new file size again
then open other file, search for original file size and replace it with new file size
anyone can give me some script that open 2 file with same name and different ext, and do stuff with it? so I can learn from it
and how can I get size of a file in QuickBMS?thanks
--edit--
two other thing come into my main
1- there is anyway to know script run with re-import mode? like some kind of Booleans?
Code:
if REIMPORTMODE
# do stuff when only in re-import mode
endif
its handy when you want to do some stuff only in re-import mode
2- how can I get file name of opened file in script? I want to name exported file based on the original archive name