User forums > Using Code::Blocks
How do I create multiple files?
BentFX:
If you've got a WHOLE BUNCH, and you happen to be on Linux you could do something like this in the shell, from your source directory..
--- Code: ---mkdir temp
cd temp
touch filename1 filename2 filename3 filename4 filename5
for a in *; do cp $a $a.hpp; mv $a $a.cpp; done
mv * ..
cd ..
rm -r temp
--- End code ---
Then you can add them all in C::B with one call to add files...
I know this is really more of a Linux shell trick than a C::B feature. But like I said up front... "If you've got a WHOLE BUNCH" it might prove to be the easiest.
Navigation
[0] Message Index
[*] Previous page
Go to full version