of typing in the new lines with labels and IncludeBinary. Therefore,
I would love to see a command called "EmbedFolder" with this syntax:
Code: Select all
EmbedFolder "C:\Dev\My Icons\"
"DataSection" command, then parse all files in that folder, sort
by name, create labels based on the filename with IncludeBinary;
and finally finish it with "EndDataSection".

For example, if 2 icons existed in the folder above and were called
"About.ico" and "Quit.ico", and the compiler reached this command,
it would create the following code instead (internally that is, not
seen by the coder in the source):
Code: Select all
DataSection
About_ico: : IncludeBinary "C:\Dev\My Icons\About.ico"
Quit_ico: : IncludeBinary "C:\Dev\My Icons\Quit.ico"
EndDataSection
the extension replaced with an underscore. So simple, and so much
of a time-saver when many files are being included. (My source had
50 included icons, and they were a royal pain to type in).
For situations where the label already exists in the source so far,
the compiler could just stop there with a warning instead. Please?
For those who suggest writing a tool for this, yes, but it's nicer
to have it native so it's always there, especially when you're
installing PureBasic on different PCs or virtual machines.

Also, a command means you can use it in more than one place
in your source, which is very important. A tool can't do that.