RE: [ql-users] MinisQL

2001-02-12 Thread Norman Dunbar

Oh B* !!!

I've never actually tried to write to a directory channel - but DJ_OPEN_DIR
uses the normal QDOS IO_OPEN trap with the correct setting for a directory.

I must have a look into this at some point - Work, wife and QLTdis allowing
:o)

Looks like a disc editor is your best bet then :o(


Norman.



Norman Dunbar   EMail:  [EMAIL PROTECTED]
Database/Unix administrator Phone:  0113 289 6265
Lynx Financial Systems Ltd. Fax:0113 201 7265
URL:http://www.LynxFinancialSystems.com



-Original Message-
From: Dilwyn Jones [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 11:41 AM
To: QL Users List
Subject: [ql-users] MinisQL


>Nice idea Norman, just tried it. Sadly, seems like opening a channel
>to the directory with DJ_OPEN_DIR or FOP_DIR is read only in the
>current DV3 filing system, certainly using PRINT or BPUT to try to
>send either the whole 64 bytes header or individual bytes gives a
'bad
>parameter' error on trying to write to the header directly. 



Re: [ql-users] MinisQL

2001-02-10 Thread Marcel Kilgus

Dilwyn Jones wrote: 
> OK, a challenge to you and other resourceful guys out there, short of
> suing a disk editor, or going back to a level 1 QL, any other
> ingenious ways around this?

Take the disc editor. Should be about 30 seconds of work after all. ;)

Marcel





[ql-users] MinisQL

2001-02-10 Thread Dilwyn Jones

>>DJ_OPEN_DIR("FLP1_")
>>FETCH_BYTES(#Chan, 64)
>>Do changes here
>>MOVE_POSITION(#Chan, -64)
>>print #Chan, New 64 bytes header ; <-- SEMI-COLON VERY IMPORTANT !!!
>>
>>from DJToolkit might be of use then !
>
>Nice idea Norman, just tried it. Sadly, seems like opening a channel
>to the directory with DJ_OPEN_DIR or FOP_DIR is read only in the
>current DV3 filing system, certainly using PRINT or BPUT to try to
>send either the whole 64 bytes header or individual bytes gives a
'bad
>parameter' error on trying to write to the header directly. Next
>effort will be to use something like GetHEAD and SetHEAD to see if
>more 'official' methods will work.

No, GetHEAD and SetHEAD won't work either, since QPC doesn't allow me
to open a channel to the file to be renamed (I suppose if it did, I
wouldn't need to alter the filenames in the first place.

Interestingly, if you try to open a file such as OPEN
#3,'flp1_'&chr$(0)&'test' it creates a file called 'flp1__test' (the
CHR$ 0 is replaced by an underscore) but the reverse is not true - a
filename containing a NUL seems to be protected in some way. DIR will
list it, but that's as far as you'll get.

OK, a challenge to you and other resourceful guys out there, short of
suing a disk editor, or going back to a level 1 QL, any other
ingenious ways around this?

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html




Re: [ql-users] MinisQL

2001-02-10 Thread Dilwyn Jones



>:o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o)
>
>DJ_OPEN_DIR("FLP1_")
>FETCH_BYTES(#Chan, 64)
>Do changes here
>MOVE_POSITION(#Chan, -64)
>print #Chan, New 64 bytes header ; <-- SEMI-COLON VERY IMPORTANT !!!
>
>from DJToolkit might be of use then !

Nice idea Norman, just tried it. Sadly, seems like opening a channel
to the directory with DJ_OPEN_DIR or FOP_DIR is read only in the
current DV3 filing system, certainly using PRINT or BPUT to try to
send either the whole 64 bytes header or individual bytes gives a 'bad
parameter' error on trying to write to the header directly. Next
effort will be to use something like GetHEAD and SetHEAD to see if
more 'official' methods will work.

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html




Re: [ql-users] MinisQL

2001-02-09 Thread Dilwyn Jones

Thank you Norman, will try your suggestion. BTW, the DJToolkit Norman
refers to can be obtained from my Web site (Other Softyware Page).
--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html

-Original Message-
From: Norman Dunbar <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: 09 February 2001 16:47
Subject: RE: [ql-users] MinisQL


>Years ago I wrote some toolkit routines when Dilwyn was still trading
as
>DJC.
>I just mentioned them in passing in reply to Dilwyn's message about
editing
>the directory entries on a floppy he is having problems with.
>
>Norman.
>
>-
---
>
>Norman Dunbar EMail: [EMAIL PROTECTED]
>Database/Unix administrator Phone: 0113 289 6265
>Lynx Financial Systems Ltd. Fax: 0113 201 7265
> URL: http://www.LynxFinancialSystems.com
>-
---
>
>
>-Original Message-
>From: Claude Mourier 00 [mailto:[EMAIL PROTECTED]]
>Sent: Friday, February 09, 2001 4:43 PM
>To: '[EMAIL PROTECTED]'
>Subject: RE: [ql-users] MinisQL
>
>
>
>




RE: [ql-users] MinisQL

2001-02-09 Thread Norman Dunbar

Years ago I wrote some toolkit routines when Dilwyn was still trading as
DJC.
I just mentioned them in passing in reply to Dilwyn's message about editing
the directory entries on a floppy he is having problems with.

Norman.



Norman Dunbar   EMail:  [EMAIL PROTECTED]
Database/Unix administrator Phone:  0113 289 6265
Lynx Financial Systems Ltd. Fax:0113 201 7265
URL:http://www.LynxFinancialSystems.com



-Original Message-
From: Claude Mourier 00 [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 4:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ql-users] MinisQL






RE: [ql-users] MinisQL

2001-02-09 Thread Claude Mourier 00



-Message d'origine-
De : Norman Dunbar [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 9 février 2001 17:38
À : '[EMAIL PROTECTED]'
Objet : RE: [ql-users] MinisQL


:o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) 

DJ_OPEN_DIR("FLP1_")
FETCH_BYTES(#Chan, 64)
Do changes here
MOVE_POSITION(#Chan, -64)
print #Chan, New 64 bytes header ; <-- SEMI-COLON VERY IMPORTANT !!!

from DJToolkit might be of use then !

:o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) 

Norman.



Norman Dunbar   EMail:  [EMAIL PROTECTED]
Database/Unix administrator Phone:  0113 289 6265
Lynx Financial Systems Ltd. Fax:0113 201 7265
URL:http://www.LynxFinancialSystems.com



-Original Message-
From: Dilwyn Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] MinisQL


>> I'll try this - I also wanted to try opening a directory channel and
>> setting headers ro replace the NUL with a valid character.



RE: [ql-users] MinisQL

2001-02-09 Thread Norman Dunbar

:o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) 

DJ_OPEN_DIR("FLP1_")
FETCH_BYTES(#Chan, 64)
Do changes here
MOVE_POSITION(#Chan, -64)
print #Chan, New 64 bytes header ; <-- SEMI-COLON VERY IMPORTANT !!!

from DJToolkit might be of use then !

:o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) :o) 

Norman.



Norman Dunbar   EMail:  [EMAIL PROTECTED]
Database/Unix administrator Phone:  0113 289 6265
Lynx Financial Systems Ltd. Fax:0113 201 7265
URL:http://www.LynxFinancialSystems.com



-Original Message-
From: Dilwyn Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] MinisQL


>> I'll try this - I also wanted to try opening a directory channel and
>> setting headers ro replace the NUL with a valid character.



Re: [ql-users] MinisQL

2001-02-09 Thread Dilwyn Jones


>> Time to give up on this one I think until I can get an old level 1
QL
>> out of the attic (it's an old QDOS disk so presumably worked at
some
>> time!)
>
>You could use a disc editor like wined, search for the filename and
>replace the 0 with a valid character.
>
>Marcel

I'll try this - I also wanted to try opening a directory channel and
setting headers ro replace the NUL with a valid character.
Thanks for the suggestion. And I'll get back to you tonight or
tomorrow on the PAR printing problem.

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html





Re: [ql-users] MinisQL

2001-02-08 Thread Marcel Kilgus

Dilwyn Jones wrote: 
> Time to give up on this one I think until I can get an old level 1 QL
> out of the attic (it's an old QDOS disk so presumably worked at some
> time!)

You could use a disc editor like wined, search for the filename and
replace the 0 with a valid character.

Marcel





Re: [ql-users] MinisQL

2001-02-08 Thread Dilwyn Jones

Tony Firshman wrote:
>I assume you have made sure the ribbon cable is OK?  Try pushing the
>cable in and out to clean the connections (both ends).
>
>Does the drive motor start at all?

When I switched it on again tonight to do a more thorough test, the
drive works in that it gives a dircetory listing of a disk inserted
(using both SMSQE and QDOS JM). However, when the disk stops and the
drive light goes out, there is a hammerdrill noise from the drive. It
sounds rather as though the drive is dying I'm afraid.

I've had problems before with internal connections in the MinisQL and
this was the first thing I thought of.

The room where the computers are stored are not the warmest in the
house; I'll try improving the heating a bit for a few days - its
problems seem to have always happened during the winter.

Bill Waugh suggested that I try putting the CHR$(0) filename in
quotes - I have tried this Bill and it doesn't make any difference in
this case. The error message I constantly get is End Of File.

Time to give up on this one I think until I can get an old level 1 QL
out of the attic (it's an old QDOS disk so presumably worked at some
time!)

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html




Re: [ql-users] MinisQL

2001-02-08 Thread Tony Firshman

On Wed, 7 Feb 2001 at 21:22:23, Dilwyn Jones <[EMAIL PROTECTED]
.uk> wrote:
(Ref: <005401c0914c$2f3ddfa0$ef065cc3@default>)

>I had reason to fire up my MinisQL tonight for the first time in a
>long time. The reason was: I needed an 'old' system. I was trying to
>copy a disk with CHR$(0) in the filename and of course SMSQE sees this
>as a DOS disk filename separator or something and gets totally
>confused finding it on a QL system. OK, no problem, fire up the
>MinisQL with QDOS to copy and rename the files, then find that the
>floppy disk drive does not work. The power is getting to it, but no
>drive light, no files listed (on any floppy disk!). Anyone got any
>idea what might be wrong - the system is Aurora, Super Gold Card,
>Qubide 2.1, Mplane...
>
>Not that expensive to find a new drive of course, but if anyone has
>any suggestions to save a few pounds! (The rest of the MinisQL works
>OK, just can't get the floppy drive to work).
I assume you have made sure the ribbon cable is OK?  Try pushing the
cable in and out to clean the connections (both ends).

Does the drive motor start at all?

-- 
   QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
mailto:[EMAIL PROTECTED] http://www.firshman.demon.co.uk 
Voice: +44(0)1442-828254  Fax: +44(0)1442-828255 
  TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG



Re: [ql-users] MinisQL

2001-02-07 Thread Bill Waugh

Dilwyn Jones wrote:
> 
> I had reason to fire up my MinisQL tonight for the first time in a
> long time. The reason was: I needed an 'old' system. I was trying to
> copy a disk with CHR$(0) in the filename and of course SMSQE sees this
> as a DOS disk filename separator or something and gets totally
> confused finding it on a QL system. OK, no problem, fire up the
> MinisQL with QDOS to copy and rename the files, then find that the
> floppy disk drive does not work. The power is getting to it, but no
> drive light, no files listed (on any floppy disk!). Anyone got any
> idea what might be wrong - the system is Aurora, Super Gold Card,
> Qubide 2.1, Mplane...
> 
> Not that expensive to find a new drive of course, but if anyone has
> any suggestions to save a few pounds! (The rest of the MinisQL works
> OK, just can't get the floppy drive to work).
> 
> Good job I kept an old QL + disk drives in the attic, eh?
> 
> --
> Dilwyn Jones
> [EMAIL PROTECTED]
> http://www.soft.net.uk/dj/index.html

Couple of things Dilwyn

1. Did you try when coping the file with chr$(0) enclosing the whole
file name in quote marks, this has worked for me in the past, I don't
know if I've used it with SMSQE but it might be worth a try.

2. On you Minis, try reading the floppy with no disc in the drive, if it
comes up with no media then try insert the floppy and reading it, this
often works I think it's is something to do with perceived DOS files and
a DOS thing.

All the best - Bill
2.



[ql-users] MinisQL

2001-02-07 Thread Dilwyn Jones

I had reason to fire up my MinisQL tonight for the first time in a
long time. The reason was: I needed an 'old' system. I was trying to
copy a disk with CHR$(0) in the filename and of course SMSQE sees this
as a DOS disk filename separator or something and gets totally
confused finding it on a QL system. OK, no problem, fire up the
MinisQL with QDOS to copy and rename the files, then find that the
floppy disk drive does not work. The power is getting to it, but no
drive light, no files listed (on any floppy disk!). Anyone got any
idea what might be wrong - the system is Aurora, Super Gold Card,
Qubide 2.1, Mplane...

Not that expensive to find a new drive of course, but if anyone has
any suggestions to save a few pounds! (The rest of the MinisQL works
OK, just can't get the floppy drive to work).

Good job I kept an old QL + disk drives in the attic, eh?

--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html