Login
Back to forumReply to this topicGo to last reply

Posted By

SVS
on 2007-12-01
05:48:13
 Lenght of Diskdrive commands

Hi,
I've tried to use the COPY command from Basic, but if the command-line I type is greather then 40? characters then I receive a "string too long" error. Is existing there any string limitation on the commands sent to the drive? Or maybe the Basic version of drive' C command is limited?

The COPY command is able to concat many files into one, but cause this limitation the files have to be short names!

Posted By

IstvanV
on 2007-12-01
06:36:25
 Re: Lenght of Diskdrive commands

It is probably a limitation of the drives, as the long strings are also not accepted when passed as a parameter of the OPEN command, or sent from a simple machine code program.

Posted By

Ulysses777
on 2007-12-01
11:40:39
 Re: Lenght of Diskdrive commands

>The COPY command is able to concat many files into one

Are you sure about this?

How exactly are you entering the command?

Posted By

IstvanV
on 2007-12-01
11:54:47
 Re: Lenght of Diskdrive commands

The source file name can be a comma separated list of names, for example 'copy "foo,bar" to "foobar"'.

Posted By

SVS
on 2007-12-01
12:44:29
 Re: Lenght of Diskdrive commands

Exactly IstvanV, and furthermore the files to be merged into one could be many happy

Posted By

Ulysses777
on 2007-12-01
20:53:21
 Re: Lenght of Diskdrive commands

It looks like that all the comma separated filenames within the double-quotes have to be within the 16 character limit (including the commas).

None of the official documentation seems to mention this capability, perhaps this is the reason why.

Even with the C128's CONCAT command, the manual recommends keeping the filenames small due to drive limitations.

Posted By

SVS
on 2007-12-02
08:20:44
 Re: Lenght of Diskdrive commands

Ok, but what is the real limit? I don't think it is 16 characters maybe 31?

Posted By

JamesC
on 2007-12-02
10:30:21
 Re: Lenght of Diskdrive commands

"The length of a command string (command and filenames) is limited to 41 characters." -- 1581 User's Guide, page 30



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon