BINGO!! You got it. _ifis.ini was, in fact, in the exe. It should have been EXCLUDED in the project. I only have it there for ease of finding it.
Thanks for the help! Henry -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Pearson Sent: 2007-07-17 1:10 PM To: [EMAIL PROTECTED] Subject: RE: Weird one: 1 file not copied File() has a little quirk. If the file you are looking for is in the compiled EXE, or path somewhere else, it could return .T., even though it does not exist at the specified path. This may get past that problem. IF ADIR(laFileExist, FullPath(lcPathNet + lcCurDir + laFiles[I,1])) = 0 *-- File does not exist ENDIF Tracy -----Original Message----- From: [EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 12:17 PM Hi guys, One file out of 272 is not copying to the network. Anyone got any idea why this is happening? (VFP9SP1 on W2000) Please see comments in code. ======================================== For lnDir = 1 To Alen(laDirs) Thisform.cntThermo1.Set(lnDir) lcCurDir = laDirs[lnDir] If lnDir<4 lcDatSet = lcPathDat Else lcDatSet = lcPathSet Endif Cd (lcDatSet + lcCurDir) If Not Directory(lcPathNet + lcCurDir) Md (lcPathNet + lcCurDir) Endif =ADir(laFiles) Thisform.cntThermo2.Start(Alen(laFiles,1),lcTemp + [ ] + lcCurDir) For I = 1 To Alen(laFiles,1) Thisform.cntThermo2.Set(I) Copy File (FullPath(lcDatSet + lcCurDir + laFiles[I,1])) To (FullPath(lcPathNet + lcCurDir + laFiles[I,1])) If lndir = 4 And i = 25 * thid one file is NOT copied. The debugging code below does NOT catch the fact that it did not copy Set Step On endif * Temp debugging code If Not File(FullPath(lcPathNet + lcCurDir + laFiles[I,1])) * I never get here. Not File() does NOT detect that the file did not copy. * If I copy/paste the File() line to the command window, I get an .F. (meaning the file is NOT there). If Messagebox([Not copied. Retry?],36) = 6 Loop Endif Endif Endfor Wait Clear Release laFiles EndFor ======================================== Thx, Henry [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com 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.