The following code demonstrates what was going wrong in terms of resolving 
paths:

Local lcTempDir, lcFile1, lcFile2, lcMessage

lcTempDir = SYS(2015)

lcFile1 = "..\Temp1\Test.DBF"
lcFile2 = "..\Temp1\Nosuchfile.DBF"

MD (lcTempDir)
CD (lcTempDir)

MD Temp1
MD Temp2
CD Temp1

Create Table Test (Test C(1))
USE

CD ..
CD Temp2

lcMessage = "Current directory: " + CURD() + CHR(13)+CHR(10)
lcMessage = lcMessage + "Path to file 1:" + Fullpath(lcFile1) + CHR(13)+CHR(10)
lcMessage = lcMessage + "Path to file 2:" + Fullpath(lcFile2) + CHR(13)+CHR(10)

MessageBox(lcMessage)

CD ..


lcMessage = "Current directory: " + CURD() + CHR(13)+CHR(10)
lcMessage = lcMessage + "Path to file 1:" + Fullpath(lcFile1) + CHR(13)+CHR(10)
lcMessage = lcMessage + "Path to file 2:" + Fullpath(lcFile2) + CHR(13)+CHR(10)

MessageBox(lcMessage)

CD Temp1

ERASE ("Test.DBF")
CD ..
RD Temp1
RD Temp2

CD ..

RD (lcTempDir)

RETURN


----- Original Message -----
From: "Paul Newton" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 13 May 2008 10:56:19 o'clock (GMT) Europe/London
Subject: Re: Stumped - 1102 error

Bill

Thanks for your reply - we have solved the problem and I shall post a full 
explanation later today

Paul

PS It was basically a path resolution problem ....

----- Original Message -----
From: "Bill Arnold" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 13 May 2008 09:51:48 o'clock (GMT) Europe/London
Subject: RE: Stumped - 1102 error

Paul,

Did you try COPY FILE (source) to (target)?

Bill


> The following line is giving an 1102 error (cannot create file)
> 
> COPY (source) TO (target)
> 
> Things I have checked:
> 
> 1. Source exists
> 2. Target path exists
> 3. Target file name is valid
> 4. Free space in the target location
> 5. Permissions - I can break out and manually copy the source 
> to the target in Explorer without a problem
> 
> I am completely stumped and so are my colleagues !  There 
> must be something we have overlooked or haven't considered 
> but I'm d****d if I can think what ....
> 
> Paul Newton
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to