Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #536

Re: ShellFileCopy API - Windows sometimes returns "File is too large for destination file system" error

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups comp.lang.basic.visual.misc
Subject Re: ShellFileCopy API - Windows sometimes returns "File is too large for destination file system" error
Date 2011-12-06 17:06 -0500
Organization A noiseless patient Spider
Message-ID <jbm3i3$fes$1@dont-email.me> (permalink)
References <1f8479de-ae1b-44c7-8f49-ed1f4ca257a3@4g2000yqu.googlegroups.com>

Show all headers | View raw


I'm curious why you're using the Shell wrapper if you
don't need GUI. Why not just use kernel32's CopyFileA?

Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal 
lpExistingFileName As String, ByVal lpNewFileName As String, ByVal 
bFailIfExists As Long) As Long

-- 
--
"techman41973" <techman41973@yahoo.com> wrote in message 
news:1f8479de-ae1b-44c7-8f49-ed1f4ca257a3@4g2000yqu.googlegroups.com...
|I have a program I wrote in Visual Basic that copies a file from one
| directory into another directory at a prescribed interval. The Visual
| Basic programs uses the ShellFileCopy API function
|  http://www.ex-designz.net/apidetail.asp?api_id=357
|  http://www.freevbcode.com/ShowCode.asp?ID=499
|
| 99% of the time, the program works fine.
| However occasionally, I get a Windows error that pop's up that says
| "File is too large for the destination file system"
| This is extremely baffling as the size of the file that is being
| copied is under 1MB.
|
| Does anyone have any idea to what would be triggering this error in
| Windows 7?
| Thanks 

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ShellFileCopy API - Windows sometimes returns “File is too large for destination file system” error techman41973 <techman41973@yahoo.com> - 2011-12-06 12:25 -0800
  Re: ShellFileCopy API - Windows sometimes returns "File is too large for destination file system" error "Mayayana" <mayayana@invalid.nospam> - 2011-12-06 17:06 -0500
  Re: ShellFileCopy API - Windows sometimes returns "File is too large for destination file system" error "Nobody" <nobody@nobody.com> - 2011-12-06 17:07 -0500
    Re: ShellFileCopy API - Windows sometimes returns "File is too large for destination file system" error ralph <nt_consulting64@yahoo.net> - 2011-12-06 17:11 -0600

csiph-web