Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error 53 File Not Found

Posted on 2008-10-27
2
Medium Priority
?
250 Views
Last Modified: 2012-08-14
I have the following code (partial) which is producing Error 53 File Not Found.  The file IS there and I've even created a Message Box to ensure that the entire path is correct.   I'm not sure where to go from here and any help in resolving this issue is appreciated.

           
Dim fd As FileDialog
Dim FileDest As Variant
Dim strSource As String
 
On Error GoTo errout
 
strSource = "\\cor-eng-07.am.corp.airliquide.com\g$\smartplantdb\cathistory\" & strFullCat & " Rev " & strRev & "\"
 
Dim fs As Scripting.FileSystemObject
Set fs = New Scripting.FileSystemObject
Dim f1 As Scripting.Folder
Set f1 = fs.GetFolder(strSource)
 
Set fd = Application.FileDialog(msoFileDialogSaveAs)
FileDest = ""
With fd
.InitialFileName = strNewCat & " Rev 0"
.Title = "Copy " & strNewCat & " Rev 0"
.Show
FileDest = .SelectedItems(1)
f1.Copy FileDest
 
Dim strOld As String
Dim strNew As String
 
 
strOld = "\" & strFullCat & " Rev " & strRev & ".zip"
strNew = "\" & strNewCat & " Rev 0.zip"
 
MsgBox (FileDest & strOld & vbCrLf & vbCrLf & FileDest & strNew)
 
'****Error 53 Here
FileCopy FileDest & strOld, FileDest & strNew
Kill FileDest & strOld

Open in new window

0
Comment
Question by:ALPC_EngineeringIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75
ID: 22815755
Are you *sure* you have adequate permissions on the Folder containing the file?

Can you go directly to the file in Windows Explorer - and do whatever?

mx
0
 

Accepted Solution

by:
ALPC_EngineeringIT earned 0 total points
ID: 22816123
Yes, I am admin on this server with full rights.  I placed a timer event in the code and this seems to have resolved the issue.  Thanks for your response.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question