Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

bastodir

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various
View previous topic :: View next topic  
Author Message
olhexy

Bascom Member



Joined: 03 Apr 2011
Posts: 182
Location: Tilburg, Netherlands

netherlands.gif
PostPosted: Thu Jul 16, 2020 2:10 pm    Post subject: bastodir Reply with quote

Every time that I get a fresh Bascom I start to mess around in de Samples folder. It is soon cluttered with compiler output that has nothing to do with all the other .bas files that are in the same Samples directory.

I think every .bas in the Sample directory deserves its own directory.
That is what this bastodir utility can do. I use it in Windows10.

Download and unzip.
Put this utility in a directory with .bas files cluttered with other garbage.
When run it creates a same named directory (if it not exists) for each .bas file and places a copy of that .bas file inside.
When reading file or dir names it does not distinguish between upper and lower case, but every file or dir name created is in lower case.

(Thanks to user Arco from circuitsonline.net)
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1216
Location: SYDNEY

australia.gif
PostPosted: Thu Jul 16, 2020 2:41 pm    Post subject: Reply with quote

Now all we need is for it to do the same for .inc files

Regards Paul
Back to top
View user's profile
olhexy

Bascom Member



Joined: 03 Apr 2011
Posts: 182
Location: Tilburg, Netherlands

netherlands.gif
PostPosted: Thu Jul 16, 2020 4:16 pm    Post subject: Reply with quote

Paulvk wrote:
Now all we need is for it to do the same for .inc files

Regards Paul

Do you just want inctodir? Just .inc in stead of .bas? I can easily ask for that.

Or some kind of combo? Then you have to be more specific about your wishes.





EDIT: (to Paulvk here under)
My first idea was to make a copy of Samples and give it the bastodir treatment. Then change in Options/Environment/IDE the Sample location to that copy.

Other purpose:
I experienced a very cluttered workspace if I experiment. Many 'almost the same' programs accompanied with compiler files.
Bastodir could then filter every 'almost the same' program into a separate directory with only the related outputfiles when recompiled.
So bastodir can also be a cleanup help.

I think there are many other extensions one may want to use this way.
Could be done with a popup where you fill in the extension.
Or select the extension from a drop down list.
If such utility would come up with a right mouse click in Windows file explorer, that would be the ultimate soltution.
However, I do not intend to grow this into a large project, as I cannot do it myself. I got bastodir as a gift.
So let's first see if bastodir has practical use, before asking extra's.


Last edited by olhexy on Fri Jul 17, 2020 11:27 am; edited 2 times in total
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1216
Location: SYDNEY

australia.gif
PostPosted: Fri Jul 17, 2020 1:29 am    Post subject: Reply with quote

Both would be good so it does the same for .inc as it does for .bas
This is because the .inc files are little program files.
With bascom having the project mode that others do not.
If we we more tidy we would not need it Very Happy

Regards Paul
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum