INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

(OP)
I have a program written in VB6 that checks for an available update on a LAN network drive, and if available, it will copy the newer version from the X drive to the program folder on the C drive. Works just fine on our Win7 computers, but some of the PCs are being upgraded from Win7 to Win10 and the simple process just won't work.

Here it is in a nutshell
SOURCEPATH = "X:\LOCAL SCHEDULING SYSTEM\SOFTWARE UPDATES\SCHEDULING.EXE"
DESTPATH = APP.PATH+"\SCHEDULING.EXE"
SET FSO = CREATEOBJECT("SCRIPTING.FILESYSTEMOBJECT")
FSO.COPYFILE SOURCEPATH,DESTPATH

The error is occurring in the last line because for some reason Win10 is saying that it cannot fine the path for the source file stored in the var SOURCEPATH. I've triple-checked and it's ABSOLUTELY ACCURATE, and again, it works just fine in Win7, so I know it has to be something with Win10 settings, but I'm just not familiar enough with Win10 yet to figure it out.

Any help on this would be GREATLY appreciated!!!!

------------------------------------
yinyang Over 20 years of programming, and still learning every day! yinyang

RE: Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

Happy New Year! smile

Perhaps this registry setting from the 8-voted answer here solves it:
https://stackoverflow.com/questions/8812879/vb6-ap...

Good luck!
MakeItSo

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

(OP)
Will check that solution and see how it goes.. THANKS!

------------------------------------
yinyang Over 20 years of programming, and still learning every day! yinyang

RE: Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

(OP)
THAT WORKED LIKE A CHARM!!!!!!!!!!!!!!

Thank you SO much!!! :D

I've been fighting with this issue for weeks, and only had a few hairs left on my old knoggin' to pull out

------------------------------------
yinyang Over 20 years of programming, and still learning every day! yinyang

RE: Why the heck won't this work in Windows 10?!? Standard filecopy from one source to another

Glad it worked.
Nice way to start 2018. smile

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close