MoveFile problems

M

michael_mcclellan

Can anyone tell me what would be wrong with the following function?

I'm getting "Path not found."


fs.MoveFile "X:\Quotes 2004\" & Cust & " \ " & QuoteDir & "*.*",
"X:\Orders 2004\" & Cust & " \ " & OrderDir & "\"
 
R

Ray Costanzo [MVP]

Firstly, what's FS? An instance of a file system object?

You need to see what those paths are evaluating to. What if the
value of "Cust" is "kja9s0ej4509qj43p[ija;sofuasd." Debug.Print the
paths that you're using and verify they're correct.

'COMMENT OUT fs.MoveFile "X:\Quotes 2004\" & Cust & " \ " & QuoteDir
& "*.*", "X:\Orders 2004\" & Cust & " \ " & OrderDir & "\"


DEBUG.PRINT "X:\Quotes 2004\" & Cust & " \ " & QuoteDir & "*.*"
DEBUG.PRINT "X:\Orders 2004\" & Cust & " \ " & OrderDir & "\"

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top