Page 1 of 1

Level 2 check

Posted: Thu Dec 20, 2018 9:41 pm
by dden
Anyone know if it's possible to test for whether the system a program is running on supports level 2 directories?

I'm sure I've read the answer somewhere before but can't for the life of me remember where.

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:14 pm
by NormanDunbar
Head over to Dilwyn's web site and download DJToolkit. It has a function called, level2, which does exactly what you want.

HTH

Cheers,
Norm.

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:17 pm
by dden
NormanDunbar wrote:Head over to Dilwyn's web site and download DJToolkit. It has a function called, level2, which does exactly what you want.

HTH

Cheers,
Norm.
Many thanks.

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:18 pm
by NormanDunbar
Sorry, forgot the link http://www.dilwyn.me.uk/tk/djtk.zip and the keyword you want is at https://superbasic-manual.readthedocs.i ... evel2.html.


Cheers.

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:23 pm
by dilwyn
You could probably test for the presence of the MAKE_DIR extension, but I seem to recall that QemuLator can't create directories in QXL.WINs for example.

A while back I lifted the code for the LEVEL2 extension out of Norman Dunbar's DJToolkit and made a stand-alone extension function out of it, called LEVEL2% to avoid a clash of names with Norman's extension.

I'll upload it to my site in a minute in case others can make use of it, meanwhile here's a copy to test if it does what you want. Hope you don't mind, Norman?
level2.zip

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:30 pm
by dden
Thank you Dilwyn.

Re: Level 2 check

Posted: Thu Dec 20, 2018 10:36 pm
by NormanDunbar
Evening Dilwyn,

everything I do these days is open source. Help yourself, I'm pleased that my code is of use.

Cheers,
Norm.