In Search of the Moon

GFA, ASM, STOS, ...

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

rockyone
Captain Atari
Captain Atari
Posts: 344
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

In Search of the Moon

Postby rockyone » Sat Jun 24, 2017 9:07 pm

Hello

I started a converter viewer

I would not reinvent the wheel .... (I do not have time!) Would you have a routine to read all the files of a drive and all its subdirectories. In Basic - even in GFA -, or in assembler, at worst in C
The file type selection interface (other options provided)
Image

Choice of the extension and the backup folder
Image

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2978
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: In Search of the Moon

Postby AtariZoll » Sun Jun 25, 2017 7:05 am

I searched Moon in your post, but don't see it at all, so now is 2 of us who searching for :mrgreen:
All you need is proper usage of GEMDOS (Trap #1) functions Fsfirst and Fsnext . Actually, much more code will go for user interface than scanning drive.

Do you want to " read all the files of a drive and all its subdirectories", or actually just scan for them ? Because what you wrote may be really slow in case of hard disk. Ah, second question: floppy or hard disk ? Why I asking it ? Really don't see any partition (logical drive) selection in your UI.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

rockyone
Captain Atari
Captain Atari
Posts: 344
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: In Search of the Moon

Postby rockyone » Sun Jun 25, 2017 9:50 am

f course, I want to do a file search for an extensions mask.

Ok Fsfirst and Fsnext.
Currently, I'm looking for the logical partition "D" of my hard drive, including in read-only folders (attrib 17) ...
But I made a bug with folders containing a folder with the same name (D:\name_equal\name_equal\") :coffe:

After this first test, I realized the extent of the trouble on my disc by finding images in forgotten files ..... :!:

Currently, selecting a folder or drive that done by the Gem selector

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2257
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: In Search of the Moon

Postby lp » Sun Jun 25, 2017 12:17 pm

http://dev-docs.atariforge.org/files/gfa_book.zip
Unzip and find file xdir.bas, it's a GFA v2 tokenized file. It reads all files recursively.

rockyone
Captain Atari
Captain Atari
Posts: 344
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: In Search of the Moon

Postby rockyone » Sun Jun 25, 2017 8:46 pm

Thanks LP, I'll look.

I did another routine
For the floppy disk, the sum of folders and files is correct.
For the Ntsf partitions of my DD, I have sum of files and files and:> = to Atari, <= to Windows
This depends on the file being tested

rockyone
Captain Atari
Captain Atari
Posts: 344
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: In Search of the Moon

Postby rockyone » Sun Jun 25, 2017 9:12 pm

I tried to open the file with the GFA 3.51D .... :?
Where can I find version V2 of Gfa :?:

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2257
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: In Search of the Moon

Postby lp » Sun Jun 25, 2017 11:53 pm

I convert it to ASCII for you. :wink:
xdir.zip
You do not have the required permissions to view the files attached to this post.


Social Media

     

Return to “Coding”

Who is online

Users browsing this forum: No registered users and 1 guest