Microsoft KB Archive/157635

= PRB: COPY FILE TO LPT1 Causes Invalid Seek Offset =

Article ID: 157635

Article Last Modified on 3/15/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q157635



SYMPTOMS
In Windows 95, using the COPY FILE command to copy a file to LPT1 causes the "Invalid Seek Offset" error in Visual FoxPro 5.0 and 3.0b if the port is not captured. If the port is captured, the error "Invalid Path or File Name" appears. However, in Windows NT 3.51 and Windows NT 4.0, using the COPY FILE command to copy a file to LPT1 first returns a warning message that the file will be overwritten unless SAFETY is set to OFF, then the message "Error Writing to File" appears.



RESOLUTION
To work around this problem, do the following:

COPY FILE  TO LPT1.DOS



Steps to Reproduce Behavior

 * 1) Create a simple text file in Visual FoxPro as Test.txt.
 * 2) In the Command window, type in the following code:

COPY FILE Test.txt TO LPT1:

Under Windows 95, you get an "Invalid Seek Offset" error message dialog box when the port is not captured. If it is captured, the error "Invalid Path or File Name" appears.

Keywords: kbprb KB157635

-

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

© Microsoft Corporation. All rights reserved.