>>Hi people,
>>
>>I have a project which was working well. Now when I try to open it, or to BUILD it, I'm getting an "I/O opeation failure" message. It sporadically opens, but I haven't been able to rebuild it. Anybody have any familiarity with this and can tell me how to fix it? I don't know if this is a clue, but I accidentally saved it as an APP insted of as an EXE last night. HELP!!
>>
>Pete,
>
>I had a similar problem when I moved to Win2K Pro from Win98SE. Under 98, I had a D drive and my copy of FPW was on it. Whenever I tried to open a project after the move, I'd get an I/O operation failure and the project wouldn't open. If you D: drive is a CD ROM the simplest is to place a CD in it.
>
>I did wrote a short program to address this problem, however.
m.file = GETFILE('pjx')
>IF NOT EMPTY(m.file)
> USE (m.file)
> GO TOP
> REPLACE ALL NAME WITH "c" + SUBSTR(ALLTRIM(NAME), 2) FOR UPPER(LEFT(ALLTRIM(NAME), 2)) = 'D:'
> REPLACE ALL HOMEDIR WITH "c" + SUBSTR(ALLTRIM(HOMEDIR), 2) FOR UPPER(LEFT(ALLTRIM(HOMEDIR), 2)) = 'D:'
> USE
>ENDIF
I've noticed, however, that some screens that begin with "D" have had the name changed to one beginning with "C" even though the commands above shouldn't make replaces for those. In this case, I had to locate the correct file again. If you choose the CD route, you might try to re-build the project immediately so that the file references are corrected.
Fantastic! Who would've thunk putting a CD in the CD reader solves the problem.
Thanks bunches, George.
Here's your stars.
Pete
Peter Adams
FoxPro Programmer
Compu-Mail
Heisenberg was probably right...