Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error while using File System Object CopyFile Method

300 views
Skip to first unread message

raajkul

unread,
Feb 20, 2006, 1:28:54 AM2/20/06
to
I am getting the below error while copying the .DAT extension file
within the folder structure.

"-2147024832"

This error is observered sometimes when the file size is over 1 GB. The
code has worked fine with over 4 GB size of file.

Kindly help to resolve the above problem.

Steven Burn

unread,
Feb 20, 2006, 10:52:15 AM2/20/06
to
Would help if you included the code you are using (bit difficult to help
otherwise)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"raajkul" <raa...@gmail.com> wrote in message
news:1140416934.6...@g47g2000cwa.googlegroups.com...

Michael Harris (MVP)

unread,
Feb 20, 2006, 3:55:45 PM2/20/06
to

"-2147024832" (in hex) is 0x80070040 ...

0x8007---- errors are WIN32 errors.

Win32 errors are documented in decimal.

0x0040 is 64 in decimal.

System Error Codes (0-499) constant [Base]
http://msdn.microsoft.com/library/en-us/debug/base/system_error_codes__0-499_.asp?frame=true


ERROR_NETNAME_DELETED
64 The specified network name is no longer available.

The problem appears to be a (possibly transient/intermittent) network error,
not necessarily a file i/o error.

--
Michael Harris
Microsoft MVP Scripting

Scripting: Your First Steps
http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx


raajkul

unread,
Feb 21, 2006, 1:46:42 AM2/21/06
to
Please find the below code for your reference:

On Error Resume Next
fso.copyfile dataroot & "DAT" , c_strout
If err.number <> 0 Then
errorlevel=err.number
wsh.LogEvent 1, MaxEPrefix & ScriptName() & " [" & errorLevel & "]
copying data files, aborting."
wscript.quit (errorlevel)
End If

raajkul

unread,
Feb 21, 2006, 1:50:52 AM2/21/06
to
Thanks for the reply. Would you please suggest the resolution steps to
overcome this issue.

Thanks in advance.

rajesh

raajkul

unread,
Feb 21, 2006, 2:04:39 AM2/21/06
to
Thanks for the reply, would you please suggest the resolution steps for
the same.

Thanks in advance

rajesh

0 new messages