wildcards in MagiC vs Aranym/Mint

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

Post Reply
User avatar
robv
Captain Atari
Captain Atari
Posts: 267
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

wildcards in MagiC vs Aranym/Mint

Post by robv »

In my HiSoft Basic compiled programs I can delete multiple temp files using:

Code: Select all

KILL *.TMP
Works fine under MagiC and old TOS, but gives me a 'File not found' error under Aranym/Mint. I have to delete the files one-by-one to make it work.
Searched the forum for a mention of this but couldn't find any. Don't know how GBE behaves here.
No big deal once you know it, but I wonder if I'm missing something. Mind you, as far as coding is concerned I'm at the beginner's level for the last 30 years. :wink:
Rob
engaged with Atari ST since 1987
http://acwot.atari-users.com
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3164
Joined: Sun Aug 03, 2014 5:54 pm

Re: wildcards in MagiC vs Aranym/Mint

Post by ThorstenOtto »

Might be an issue with the case of the returned filenames.

Code: Select all

KILL *.tmp
instead.
User avatar
robv
Captain Atari
Captain Atari
Posts: 267
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: wildcards in MagiC vs Aranym/Mint

Post by robv »

ThorstenOtto wrote: Wed Dec 01, 2021 1:19 pm Might be an issue with the case of the returned filenames.

Code: Select all

KILL *.tmp
instead.
Case sensitivity, good suggestion. Tried both

Code: Select all

KILL "*.TMP"
KILL "*.tmp"
doesn't make any difference. It's the "*". Perhaps a HiSoftBasic problem?
Rob
engaged with Atari ST since 1987
http://acwot.atari-users.com
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3164
Joined: Sun Aug 03, 2014 5:54 pm

Re: wildcards in MagiC vs Aranym/Mint

Post by ThorstenOtto »

Maybe. Another solution might be to do a Fsfirst("*.*") and do the filename comparison yourself.
Post Reply

Return to “Other BASIC”