Microsoft KB Archive/90032

= PRB: COPY FILE Command Gives &quot;File Access Denied&quot; Error =

Article ID: 90032

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.0

-



This article was previously published under Q90032



SYMPTOMS
When the COPY FILE command is used to copy a file, a &quot;File access denied&quot; error occurs.



CAUSE
The destination filename is not specified in the COPY FILE command.



RESOLUTION
Specify the fully qualified pathname for the destination file.



MORE INFORMATION
To copy the TEST.PRG file from the C:\FOXPRO2 directory to the C:\PROGRAM directory, enter the following command in the Command window: COPY FILE C:\FOXPRO2\TEST.PRG TO C:\PROGRAM\TEST.PRG Omitting the filename, as follows COPY FILE C:\FOXPRO2\TEST.PRG TO C:\PROGRAM causes a &quot;File access denied&quot; error message to appear. FoxPro interprets the PROGRAM directory as the name of a file and it is unable to open that directory as a file.

Additional query words: VFoxWin FoxDos FoxWin 2.50 2.50a errmsg err msg

Keywords: kberrmsg KB90032

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.