WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jmburton2001 on January 10, 2020, 08:09:09 AM

Title: Question about compiler "Other files"
Post by: jmburton2001 on January 10, 2020, 08:09:09 AM
When adding other files in the compiler, does it extract those files every time the executable is run or only when they're missing on subsequent runs?

I've attached a specific configuration (cfg) file to an executable and was wondering if the cfg was changed between executions, would it be overwritten by mine on the next run? If not, is there any way to force it to extract mine every time and overwrite the existing one?

As part of the "exit" routine I'm thinking about deleting the configuration file so it extracts the "other file" upon the next execution (or maybe have the script write the cfg file and overwrite the existing one at the beginning of each execution)?
Title: Re: Question about compiler "Other files"
Post by: td on January 10, 2020, 08:44:47 AM
It is best to look before you ask (The default is to overwrite other files.) :

https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Compiler+Other~Files~Check~Before~Overwrite.txt (https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Compiler+Other~Files~Check~Before~Overwrite.txt)


If you wish to control file extraction, see this article:

https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Compiler+Other~Files~Explained.txt (https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Compiler+Other~Files~Explained.txt)
Title: Re: Question about compiler "Other files"
Post by: jmburton2001 on January 10, 2020, 02:56:29 PM
Thank you!  :D