"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.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Chris MillardConnect With a Mentor Commented:
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?
Martin LissOlder than dirtCommented:
Name "O:\test150.jpg" As "C:\test155.jpg"
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!!!
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Chris MillardCommented:
UAC is a pain in the rear end sometimes. Glad you found the problem though.
You shall not copy to C:\. That's why UAC is preventing you from doing so.
Chris MillardCommented:
@Qlemo - that has already been said above :-)
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.
All Courses

From novice to tech pro — start learning today.