Solved

Error 53 File Not Found

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

912 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now