Solved

Error 53 File Not Found

Posted on 2008-10-27
2
247 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
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

828 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