I wanted to separate this issue from my other post that also contained a second issue that was resolved.
This code snippet worked fine in 7 but fails after upgrade to 10. I get "runtime error '5': Invalid call or argument" on fname = Dir:
oldpath = "\\DSGAIN01\Commercial_Printing\Work...