Re: [Ql-Users] Copying files from QL to PC

2009-06-06 Thread aupf82
 to copy across to the PC.  In mdv2_ on the QL I have the mdvtowin file 
I created earlier.  In QemuLator, I have a (virtual) microdrive, mdv2_ set 
up and mapped to a folder on the underlying PC

Connect the QL the PC, and power both on
On the QL:

exec_w mdv2_mdvtowin

The mdvtowin program executes and asks for the source file, give it

mdv1_index_dbf

the program scans the file, once finished it then prompts for the 
destination, enter

ser1

at this point the data is sent down the serial port and the QL no longer 
shows any cursor activity, as it waits for the data to be accepted from the 
other end, so...

On QemuLator enter

copy ser1 to mdv2_index_dbf

the mdv on QemuLator will light as data is copied to it and the file is 
created.  Once the transfer completes, on the QL there will again be a 
flashing cursor.  Once the copy finishes, i.e. flashing cursor on QL, AND 
mdv light extinguishes on QemuLator, press ctrl-space on QemuLator.  The 
mdvtowin executable also reports a successful transfer.

The file is now accessible to QemuLator.

This can be repeated as many times as required to get as many files copied 
as possible.  I successfully transferred the Psion Chess program from the 
original microdrive using this method, and can run it on QemuLator now.


* THE END **

I hope the above is all correct.  I've checked it all, but even with the 
best of intentions, I tend to find that mistakes always seem to sneak in 
somehow.

And once again, thanks to everyone who responded so promptly with help and 
advice.  It's nice to see that there's a community based around the QL 
that's still going strong, even now.

Cheers,

John


--
From: Dilwyn Jones dil...@evans1511.fsnet.co.uk
Sent: Thursday, June 04, 2009 1:16 PM
To: ql-us...@q-v-d.com
Subject: Re: [Ql-Users] Copying files from QL to PC

 I sent an e-mail last night but I'm not sure if it was received.  Anyway, 
 I thought I'd try to copy from my real ql
 to a q-emulator ql over the serial port, and I'm getting better results 
 that I was getting using a DOS prompt.  I'm
 getting so close now I can taste it.
 Wonder what a serial port tastes like? Is there enough voltage on the 
 lines to tingle the tongue. Says he, victim of prank a few years ago when 
 told to test PP3 9V batteries on the tongue :-()

 Using q-emulator's serial port I have been able to copy complete files 
 back and forth between the emulated and real
 ql's (no more ctrl-z problems).  I just have one last problem with 
 executables.

 I am able to copy the complete file and if I do a copy mdv1_filename to 
 scr_ on the real and emulated ql's the
 output on the screen appears identical; but when I try to EXEC the 
 target file (the copy) I get bad parameter, Ah, usual loss of QL file 
 headers on non-QL systems. Headers might not be preserved across the 
 serial link. Might be worth trying Toolkit 2's COPY_H command to see if 
 that manages to preserve headers.

 whereas the source file runs correctly.  I think this must be what 
 several of you have to alluded to with
 headers.  I expect that following the suggestion of zipping the files 
 would help, however, I still have to get zip
 executable copied across.
 There is a self-extracting version of the unzip executable which might 
 help with this, available from Jonathan Hudson www.daria.co.uk/qdos/

 At the top of the page, click on the link to Infozip for SMS/QDOS

 Save the downloaded file to somewhere where QemuLator can find it.

 To get it self-extracted on QemuLator just LRESPR the SFX file:
 LRESPR unzip541xQ.bin
 and follow the prompts it gives. Needs quite a lot of free memory (might 
 be an issue if using the restricted memory unregistered version of 
 QemuLator).

 Does anyone have a solution that might help with this?  If there's a good 
 explanation out there regarding these
 headers and how executables are different, I'd be grateful if you could 
 point me in its direction (I'm beginning to
 find all this quite interesting ;).
 QDOS files have 64 byte file headers (not all of it used). There's a bit 
 of info about all this on my website - in the Documentation And 
 Information section, go to the File Formats page, there you'll find the 
 file headers info. Basically, QDOS files come in four main types, general 
 data files (type 0), executable(type 1), the Sinclair Relocatable Output 
 File Format (SROFF-type 2) and Level 2 Directories (type 255 or -1 on 
 systems supporting level 2 directories, or I think type 3 on old Thor 
 computers). A few more file types were invented by certain programs over 
 the years (e.g. The Painter files such as pattern files etc).

 The type 1 files (QL executables, put simply programs you can EXEC or EX) 
 have a long word in the header which specifies how much dataspace (data 
 area for a job, in bytes) a job is to have (Job is the proper term for an 
 executable QL program) and a byte which specifies the file type. If these 
 get

Re: [Ql-Users] Copying files from QL to PC

2009-06-06 Thread Dilwyn Jones

Thank you John. This will be a very useful document for others trying to
achieve what you did, hopefully without the trial and error and frustration
you experienced.

I agree wholeheartedly with what you say about QemuLator. My main system is
a QPC2 emulator which I use for day to day QL work, although I also have a
QemuLator on this PC for when I want to run software which won't run on
QPC2, or when I need to quickly test something on an original Sinclair ROM
version.

The Toolkit II you mentioned is a rom of extensions for the QL. It adds a
lot of useful new and revised keywords to the QL basic and improves the
network of a Sinclair QL. Once you've used a system with Toolkit 2, it's
awkward going back to a 'bare' QL system without it. It was included in many
floppy disk interface systems over the years. These days you can even
install it as a back eprom image in QemuLator. If you haven't got Toolkit II
on your system, you can get a copy for emulators from my website.

--
Dilwyn Jones

- Original Message - 
From: aup...@dsl.pipex.com

To: ql-us...@q-v-d.com
Sent: Saturday, June 06, 2009 8:39 AM
Subject: Re: [Ql-Users] Copying files from QL to PC




Here is what I did;  I wrote it so that hopefully even someone in my
situation (i.e. pretty clueless on QL tech aspects) would be able to get
results.  I am not a regular QL user; but I am very fond of my QL, and
occasionally fire it up to remember how things were.  It was the first
*real* computer I ever owned.

Just as a reminder,  I have a QL that I haven't used since the late
eighties
when I was a teenager.  It is a plain QL with no fancy bits and pieces
that
have come along since, like floppy drives, toolkit II's (whatever that
is),
gold cards, etc.  I also have about thirty microdrives with old files I'd
created as well as some commercial games with considerable sentimental
value



___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-06 Thread Go Boy Go(lt)

Hello 'pipex' John

I'm not currently seeking to emulate your process; but never say never!

Thank you for setting out everything so clearly. It is all now in my tech.
archive.

Good to read that, yet again, the old QL is spreading serendipity.  I think
I can safely say that we all join Dilwyn in praise of TKII.

Happy emulatin'

John in Wales

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-06 Thread Daniele Terdina

The manual explanation is pretty clear (even mentions 'directory-type 
devices'), but IMO the examples are confusing. One example advises to use 
COPY_N to copy to SER without headers, while using COPY seems to have the same 
end effect. Another example uses COPY for NET and doesn't mention headers being 
lost (not 100% sure, but I don't think NET preserves them).

 

Daniele
 
 Date: Fri, 5 Jun 2009 00:50:16 +0200
 From: ql-us...@mail.kilgus.net
 To: ql-us...@q-v-d.com
 Subject: Re: [Ql-Users] Copying files from QL to PC
 
 Daniele Terdina wrote:
  [The QL User Manual implies that COPY also copies the headers, as
  there is a COPY_N command to copy without headers, but it doesn't
  seem to work that way]
 
 Well, COPY does copy the header if it can, i.e. if the target device
 supports headers. If not, it behaves exactly like COPY_N. Headers
 never become part of the data stream.
 
 Marcel
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm

_
Windows Liveā„¢: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-05 Thread aupf82
I finally managed to get this to work.  I will post details later.  Thank you 
everyone for your help.




Quoting Marcel Kilgus ql-us...@mail.kilgus.net:

 Daniele Terdina wrote:
  [The QL User Manual implies that COPY also copies the headers, as
  there is a COPY_N command to copy without headers, but it doesn't
  seem to work that way]
 
 Well, COPY does copy the header if it can, i.e. if the target device
 supports headers. If not, it behaves exactly like COPY_N. Headers
 never become part of the data stream.
 
 Marcel
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-05 Thread aupf82
Daniele - just wanted to thank you for an extremely polished piece of software 
(q-emulator).  Many thanks.

 Daniele Terdina wrote:
  [The QL User Manual implies that COPY also copies the headers, as
  there is a COPY_N command to copy without headers, but it doesn't
  seem to work that way]
 
 Well, COPY does copy the header if it can, i.e. if the target device
 supports headers. If not, it behaves exactly like COPY_N. Headers
 never become part of the data stream.
 
 Marcel
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-05 Thread Go Boy Go(lt)

Marcel wrote:


That's what the z in ser1hz is for, no need to do it manually.

Marcel




Serial parameters are explained in Jan Jones' very useful 'Handbook', pages
74  181 and in the QL 'CONCEPTS' docs from Sinclair etc.

Happy porting,

John in Wales(ohr!)

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread Arnould
On Wed, 3 Jun 2009 16:52:47 +0200, Marcel Kilgus wrote
 aup...@dsl.pipex.com wrote:
  I think what's going on is that there's a combination of characters
  within the file body that is being interpreted as an EOF (ctrl-z).
 
 Yes, you can't transfer binary files this way as there is no 
 way of knowing when the file ends. You'd have to abort the 
 COPY command manually, but IIRC copy then discards the 
 things it has written.
 
copy mdv1_filename to ser1h
 
 on the QL side and
 
type com1  filename
 
 on the PC side plus manually aborting using CTRL+C when the 
 file is completely send might do the trick, I'm not sure.
 
 Alternatively if text transfer works reliably one could 
 encode the binary files in base64, send it over the link and 
 decode it on the other side. I've written some SBasic 
 procedures to do this but there'd still be some more work 
 needed for this.
 
 Marcel

I did something like this in 1986/87 but only for pure ASCII text
files. After the file was copied over, the PC still needed an end of
file control code to understand what happened, CTRL+Z I think, wich
had to be sent manually with something like:

OPEN#3,SER1...
PRINT#3,CODE(you will find the code of CTRL+Z)
CLOSE#3

or with more modern systems you can use BPUT for example.

Arnould

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread Marcel Kilgus
Arnould wrote:
 I did something like this in 1986/87 but only for pure ASCII text
 files. After the file was copied over, the PC still needed an end of
 file control code to understand what happened, CTRL+Z I think, wich
 had to be sent manually with something like:

That's what the z in ser1hz is for, no need to do it manually.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread aupf82
I sent an e-mail last night but I'm not sure if it was received.  Anyway, I 
thought I'd try to copy from my real ql 
to a q-emulator ql over the serial port, and I'm getting better results that I 
was getting using a DOS prompt.  I'm 
getting so close now I can taste it.

Using q-emulator's serial port I have been able to copy complete files back and 
forth between the emulated and real 
ql's (no more ctrl-z problems).  I just have one last problem with executables.

I am able to copy the complete file and if I do a copy mdv1_filename to scr_ on 
the real and emulated ql's the 
output on the screen appears identical; but when I try to EXEC the target 
file (the copy) I get bad parameter, 
whereas the source file runs correctly.  I think this must be what several of 
you have to alluded to with 
headers.  I expect that following the suggestion of zipping the files would 
help, however, I still have to get zip 
executable copied across.

Does anyone have a solution that might help with this?  If there's a good 
explanation out there regarding these 
headers and how executables are different, I'd be grateful if you could point 
me in its direction (I'm beginning to 
find all this quite interesting ;).  


 Arnould wrote:
  I did something like this in 1986/87 but only for pure ASCII text
  files. After the file was copied over, the PC still needed an end of
  file control code to understand what happened, CTRL+Z I think, wich
  had to be sent manually with something like:
 
 That's what the z in ser1hz is for, no need to do it manually.
 
 Marcel
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread aupf82
OK, I've found the answer here,

http://www.geocities.com/SiliconValley/Bay/2602/ql.html

I'll have another go tonight.

Quoting aup...@dsl.pipex.com:

 I sent an e-mail last night but I'm not sure if it was received.  Anyway, I
 thought I'd try to copy from my real ql 
 to a q-emulator ql over the serial port, and I'm getting better results that
 I was getting using a DOS prompt.  I'm 
 getting so close now I can taste it.
 
 Using q-emulator's serial port I have been able to copy complete files back
 and forth between the emulated and real 
 ql's (no more ctrl-z problems).  I just have one last problem with
 executables.
 
 I am able to copy the complete file and if I do a copy mdv1_filename to scr_
 on the real and emulated ql's the 
 output on the screen appears identical; but when I try to EXEC the target
 file (the copy) I get bad parameter, 
 whereas the source file runs correctly.  I think this must be what several
 of you have to alluded to with 
 headers.  I expect that following the suggestion of zipping the files would
 help, however, I still have to get zip 
 executable copied across.
 
 Does anyone have a solution that might help with this?  If there's a good
 explanation out there regarding these 
 headers and how executables are different, I'd be grateful if you could point
 me in its direction (I'm beginning to 
 find all this quite interesting ;).  
 
 
  Arnould wrote:
   I did something like this in 1986/87 but only for pure ASCII text
   files. After the file was copied over, the PC still needed an end of
   file control code to understand what happened, CTRL+Z I think, wich
   had to be sent manually with something like:
  
  That's what the z in ser1hz is for, no need to do it manually.
  
  Marcel
  
  ___
  QL-Users Mailing List
  http://www.q-v-d.demon.co.uk/smsqe.htm
  
 
 
 -- 
 
 
 -
 Visit Pipex Business: The homepage for UK Small Businesses
 
 Go to http://www.pipex.co.uk/business-services
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread aupf82
Thanks for that.

Would it be possible for 
 you to write up the information you've learned and I could put it on my 
 website to help other users?


Sure.

Quoting Dilwyn Jones dil...@evans1511.fsnet.co.uk:

  I sent an e-mail last night but I'm not sure if it was received.  Anyway, 
  I thought I'd try to copy from my real ql
  to a q-emulator ql over the serial port, and I'm getting better results 
  that I was getting using a DOS prompt.  I'm
  getting so close now I can taste it.
 Wonder what a serial port tastes like? Is there enough voltage on the lines 
 to tingle the tongue. Says he, victim of prank a few years ago when told to 
 test PP3 9V batteries on the tongue :-()
 
  Using q-emulator's serial port I have been able to copy complete files 
  back and forth between the emulated and real
  ql's (no more ctrl-z problems).  I just have one last problem with 
  executables.
 
  I am able to copy the complete file and if I do a copy mdv1_filename to 
  scr_ on the real and emulated ql's the
  output on the screen appears identical; but when I try to EXEC the 
  target file (the copy) I get bad parameter, Ah, usual loss of QL file 
  headers on non-QL systems. Headers might not be preserved across the 
  serial link. Might be worth trying Toolkit 2's COPY_H command to see if 
  that manages to preserve headers.
 
  whereas the source file runs correctly.  I think this must be what 
  several of you have to alluded to with
  headers.  I expect that following the suggestion of zipping the files 
  would help, however, I still have to get zip
  executable copied across.
 There is a self-extracting version of the unzip executable which might 
 help with this, available from Jonathan Hudson www.daria.co.uk/qdos/
 
 At the top of the page, click on the link to Infozip for SMS/QDOS
 
 Save the downloaded file to somewhere where QemuLator can find it.
 
 To get it self-extracted on QemuLator just LRESPR the SFX file:
 LRESPR unzip541xQ.bin
 and follow the prompts it gives. Needs quite a lot of free memory (might be 
 an issue if using the restricted memory unregistered version of QemuLator).
 
  Does anyone have a solution that might help with this?  If there's a good 
  explanation out there regarding these
  headers and how executables are different, I'd be grateful if you could 
  point me in its direction (I'm beginning to
  find all this quite interesting ;).
 QDOS files have 64 byte file headers (not all of it used). There's a bit of 
 info about all this on my website - in the Documentation And Information 
 section, go to the File Formats page, there you'll find the file headers 
 info. Basically, QDOS files come in four main types, general data files 
 (type 0), executable(type 1), the Sinclair Relocatable Output File Format 
 (SROFF-type 2) and Level 2 Directories (type 255 or -1 on systems supporting
 
 level 2 directories, or I think type 3 on old Thor computers). A few more 
 file types were invented by certain programs over the years (e.g. The 
 Painter files such as pattern files etc).
 
 The type 1 files (QL executables, put simply programs you can EXEC or EX) 
 have a long word in the header which specifies how much dataspace (data area
 
 for a job, in bytes) a job is to have (Job is the proper term for an 
 executable QL program) and a byte which specifies the file type. If these 
 get lost on a system which doesn't understand QL file headers, tough, back 
 to the drawing board! Actually you can restore them if you have the relevant
 
 info using an SEXEC command as I alluded to in revious email, though it's 
 not always easy!
 
 Other stuff in file headers include the various dates info etc.
 
 When it comes to QL data files, these have only two vital parts in the 
 header, file length and type. Even a PC can deduce the file length of a QL 
 file, and an emulator will usually assume a type 0 data file unless it knows
 
 better, so data files survive loss of headers in these circumstances quite 
 well, though you may lose the dates associated such as when the file was 
 last modified or created.
 
 There are a few little utilities out there (such as my QH system) which can 
 transfer the header information as a physically separate 64 byte file which 
 can be used to restore the executable information, though it's a tricky 
 thing unless you have experience of all this.
 
 Actually, if you do get success with the QL to QemuLator serial transfers, 
 this is a subject not covered much at the moment. Would it be possible for 
 you to write up the information you've learned and I could put it on my 
 website to help other users?
 
 -- 
 Dilwyn Jones 
 
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing 

Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread Arnould
On Thu, 4 Jun 2009 11:07:08 +0200, Marcel Kilgus wrote
 Arnould wrote:
  I did something like this in 1986/87 but only for pure ASCII text
  files. After the file was copied over, the PC still needed an end of
  file control code to understand what happened, CTRL+Z I think, wich
  had to be sent manually with something like:
 
 That's what the z in ser1hz is for, no need to do it manually.
 
 Marcel
 

Ah OK, mystery solved 20 years later... Thanks :)

Arnould

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-04 Thread Marcel Kilgus
Daniele Terdina wrote:
 [The QL User Manual implies that COPY also copies the headers, as
 there is a COPY_N command to copy without headers, but it doesn't
 seem to work that way]

Well, COPY does copy the header if it can, i.e. if the target device
supports headers. If not, it behaves exactly like COPY_N. Headers
never become part of the data stream.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-03 Thread Dilwyn Jones
I have a serial cable and can get the machines talking to each other.  I'm 
doing the following, on the QL


copy_n mdv1_filename to ser1hz

on the PC

copy com1 filename

This appears to work ok for text-based files, which I can then open up and 
load in Q-Emulator.  However, for binary
files I am having problems in that the transfer never completes - the PC 
reports the transfer as complete,  but the
QL is still sending, and I end up with only part of the file on the PC.  I 
think what's going on is that there's a
combination of characters within the file body that is being interpreted 
as an EOF (ctrl-z).


Does anyone have any suggestions as to how best I can get my files copied 
across.  I will also need to get some
files from the PC to the QL (i.e. I haven't tried yet), are there any 
pitfalls or tips to getting that to work.


Many thanks for any help.
I'm not sure about the eact problem you decided regarding possible false 
EOF, but you should beware of the risk of losing the executable file header 
when a binary (executable) file header gets saved on the PC hard disk. 
QemuLator can handle such files in its own directories as it stores the 
header separate to the executable.


One possible way of working around this is to make a note of the executable 
program file's length and dataspace on the QL then you stand a chance of 
being able to restore these in qemulator - lbytes the program file into the 
common heap, then SEXEC filename$,start,length,dataspace


If you had a floppy disk drive on the QL and PC, this would have been the 
easiest way as Qemulator can read QL floppy disks.


There are a couple of pages on my website regarding transfer, but it looks 
like you've done the hard work already, just need to find a way to work 
around the ctrl-z problem.


--
Dilwyn Jones 



___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-03 Thread Dave Walker
You could try adding the /B flag to the COPY command on the PC side to say
it is a binary file?

Also if copying program files it is a good idea to ZIP them up first to
preserve the dataspace settings stored in file headers for such files.  The
QL versions of the ZIP/UNZIP programs know how to handle this so if you
unzip them under the emulator these settings get preserved. 

Dave

-Original Message-
From: ql-users-boun...@lists.q-v-d.com
[mailto:ql-users-boun...@lists.q-v-d.com] On Behalf Of aup...@dsl.pipex.com
Sent: 03 June 2009 12:23
To: ql-us...@q-v-d.com
Subject: [Ql-Users] Copying files from QL to PC



Hi,

I wonder if anyone can help.  I have and old bog-standard QL (i.e. no floppy
drives), and I'd like transfer all my files from microdrive cartridges to a
PC so I can use them on an emulator.

I have a serial cable and can get the machines talking to each other.  I'm
doing the following, on the QL

copy_n mdv1_filename to ser1hz

on the PC

copy com1 filename

This appears to work ok for text-based files, which I can then open up and
load in Q-Emulator.  However, for binary files I am having problems in that
the transfer never completes - the PC reports the transfer as complete,  but
the QL is still sending, and I end up with only part of the file on the PC.
I think what's going on is that there's a combination of characters within
the file body that is being interpreted as an EOF (ctrl-z).

Does anyone have any suggestions as to how best I can get my files copied
across.  I will also need to get some files from the PC to the QL (i.e. I
haven't tried yet), are there any pitfalls or tips to getting that to work.

Many thanks for any help.

-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-03 Thread aupf82
Thanks for the replies.  I had tried the /B flag, but it didn't help.  I have 
looked round a number of QL sites, 
and the implication seems to be that what I'm trying to do is possible.  Can 
anyone confirm whether they've managed 
to do this successfully?



Quoting Dave Walker iti...@ntlworld.com:

 You could try adding the /B flag to the COPY command on the PC side to say
 it is a binary file?
 
 Also if copying program files it is a good idea to ZIP them up first to
 preserve the dataspace settings stored in file headers for such files.  The
 QL versions of the ZIP/UNZIP programs know how to handle this so if you
 unzip them under the emulator these settings get preserved. 
 
 Dave
 
 -Original Message-
 From: ql-users-boun...@lists.q-v-d.com
 [mailto:ql-users-boun...@lists.q-v-d.com] On Behalf Of aup...@dsl.pipex.com
 Sent: 03 June 2009 12:23
 To: ql-us...@q-v-d.com
 Subject: [Ql-Users] Copying files from QL to PC
 
 
 
 Hi,
 
 I wonder if anyone can help.  I have and old bog-standard QL (i.e. no floppy
 drives), and I'd like transfer all my files from microdrive cartridges to a
 PC so I can use them on an emulator.
 
 I have a serial cable and can get the machines talking to each other.  I'm
 doing the following, on the QL
 
 copy_n mdv1_filename to ser1hz
 
 on the PC
 
 copy com1 filename
 
 This appears to work ok for text-based files, which I can then open up and
 load in Q-Emulator.  However, for binary files I am having problems in that
 the transfer never completes - the PC reports the transfer as complete,  but
 the QL is still sending, and I end up with only part of the file on the PC.
 I think what's going on is that there's a combination of characters within
 the file body that is being interpreted as an EOF (ctrl-z).
 
 Does anyone have any suggestions as to how best I can get my files copied
 across.  I will also need to get some files from the PC to the QL (i.e. I
 haven't tried yet), are there any pitfalls or tips to getting that to work.
 
 Many thanks for any help.
 
 -
 Visit Pipex Business: The homepage for UK Small Businesses
 
 Go to http://www.pipex.co.uk/business-services
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
 


-- 


-
Visit Pipex Business: The homepage for UK Small Businesses

Go to http://www.pipex.co.uk/business-services

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Copying files from QL to PC

2009-06-03 Thread Tony Firshman

Dave Walker wrote, On 3/06/09 13:54:

You could try adding the /B flag to the COPY command on the PC side to say
it is a binary file?

Also if copying program files it is a good idea to ZIP them up first to
preserve the dataspace settings stored in file headers for such files.  The
QL versions of the ZIP/UNZIP programs know how to handle this so if you
unzip them under the emulator these settings get preserved. 
  


Yes - zipping is an excellent idea, even for text files.  That way with 
this form of raw copying you can be sure when the file is unzipped 
successfully it will be OK, as well as preserving the file headers of 
execables.


In the dim and distant past I sold a file transfer program for each 
end.  However the PD qtpi at the QL end and a file transfer program the 
other using Zmodem (for instance) will help.

The QL serial is not too reliable, especially at 9600bps.


Tony

--
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
  t...@firshman.co.uk http://firshman.co.uk 
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman

   TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm