You may want to look at files with spaces in the directory or filename. Sometimes Windows chokes on spaces. If that is the case, most of the time double quotes around the filename fixes it. John -----Original Message----- From: Sean Breheny [mailto:shb7@CORNELL.EDU] Sent: Wednesday, March 14, 2001 12:19 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [OT]: SHFileOperation Hi Barry, Thanks. I don't think that is what is happening because it is intermittant. One day it will work and the next it won't. I suspect that there is some kind of subtle network problem (i.e., something is timing out, etc.) so that's why I'd like to get a more descriptive error message. The way that I am doing it (i.e., just calling the function on the whole path name) there is no way to get a logged output of individual filenames. However, I do know that when this happens, no files get copied (because a dialog box comes up during the copy and shows the files being copied, but that only comes up when there is no error. When the error happens, the function returns immediately). Sean On Wed, 14 Mar 2001, Barry Gershenfeld wrote: > Could certain file names be fooling it? > > Some files are read-only > Some files are actually directories > Some filenames are "." and ".." > > Can you have the program tell you the name of each file > as it is being copied? > > At 02:36 PM 3/14/01 -0500, you wrote: > >Hi Tim, > > > >Thanks. My code looks very similar, and, unfortunately, the code on that > >page still has no error handling. > > > >Sean > > > > > >On Wed, 14 Mar 2001, Tim Hamel wrote: > > > >> You could check this site out and see how your code compares: > >> > >> http://www.mvps.org/vbnet/code/shell/shdirectorycopy.htm > >> > >> Regards, > >> > >> Tim Hamel > >> > >> In a message dated 3/14/01 11:07:47 AM Pacific Standard Time, > >> shb7@CORNELL.EDU writes: > >> > >> > >> > Hi everyone, > >> > > >> > Sorry for the OT message, but I know someone here can help :-) > >> > > >> > I'm trying to copy some files over a LAN in a VB program using the > >> > SHFileOperation function, and occasionally, I'll get errors from it. I > >> > can't seem to find an explanation of the error codes it returns. I'm > >> > getting errors 1026 and 117. I found a web site where it said that 1026 > >> > is like "File not found", but this doesn't make much sense because I'm > >> > copying a whole directory and I know that it always exists. I'm thinking > >> > that the error could mean something a little different over a network. > >> > Any ideas? > >> > > >> > Thanks, > >> > > >> > Sean > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics