BBC BASIC for Windows
« COPY won't work without an extension »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:45pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: COPY won't work without an extension  (Read 412 times)
KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx COPY won't work without an extension
« Thread started on: Nov 20th, 2014, 10:53am »

Does anyone have any ideas?
I have a file called "0" or "japan" or whatever; the point is that there is no file extension. If I try OPENIN or OPENUP or *COPY they all fail, usually with a "File not found" error. Yet if I drag the file from one place to another it happens perfectly.

I've tried enclosing the file name is doublequotes, but it makes no difference.

Any ideas how to get the file fo *COPY from location A to location B?

Thanks.
User IP Logged

sbracken
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: COPY won't work without an extension
« Reply #1 on: Nov 20th, 2014, 12:46pm »

Hi Ken,

If you check the manual for the *COPY command

http://bbcbasic.co.uk/bbcwin/manual/bbcwin8.html#copy

you will find the follwowing (also present in the manual under the entries for OPENIN, OPENOUT and OPENUP):

"the filename extension defaults to .BBC if omitted. To specify a filename with no extension, add a final full-stop. "

So all you need to do is add a full stop.

Simon
User IP Logged

Edja
Developer

member is offline

Avatar




PM


Posts: 60
xx Re: COPY won't work without an extension
« Reply #2 on: Nov 20th, 2014, 12:50pm »

The manual says :
Quote:
If the extension is omitted, .BBC is assumed. To specify a filename with no extension, add a final full-stop.
Have you taken into account that OPENIN, if no extension is specified, will be looking for a file with extension .BBC unless you've added a final full-stop ?

Eddy
User IP Logged

KenDown
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 181
xx Re: COPY won't work without an extension
« Reply #3 on: Nov 20th, 2014, 6:28pm »

Bah!

And thanks. I must have read that a dozen times and it went completely over my head.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls