"Path not found" using filecopy

I am completely baffled on this one.
FileCopy "O:\test150.jpg", "C:\test155.jpg"

Open in new window

results in "Path not found"

And I assure you that the test150.jpg does exist on the "O:" drive.

It seems as though it is only working for "C:" drive transfers only.
hrolsonsAsked:
Who is Participating?
 
Chris MillardCommented:
Are you by any chance trying to do this on Vista/Win 7/Win 8 etc? It's quite possible that it is the OS causing the issue. VB Classic is (obviously) quite old now, and some functions will fail without error.

What about if you try to compile the code then run as administrator, or try disabling UAC.

UAC might also be the problem by not allowing you to copy into the root of C:. Could you perhaps change the destination folder just in case it's a UAC issue?
0
 
Martin LissOlder than dirtCommented:
Name "O:\test150.jpg" As "C:\test155.jpg"
0
 
hrolsonsAuthor Commented:
@Martin - I still get "path not found"

@Chris - You hit the nail on the head!!!  Turned off UAC and everything is cooperating now.  Thank You!!!
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Chris MillardCommented:
UAC is a pain in the rear end sometimes. Glad you found the problem though.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
You shall not copy to C:\. That's why UAC is preventing you from doing so.
0
 
Chris MillardCommented:
@Qlemo - that has already been said above :-)
0
 
Chris MillardCommented:
@hrolsons - please would you be kind enough to close the question and allocate the points now that the question has been successfully answered? Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.