Same function runs on one machine, run time error on another
Posted on 2013-01-06
I have two PCs set up at the same time (maybe four years ago), both with Vista-32. Let's call them PC1 and PC2. Both run 24/7 remotely, running a suite of VB scripts. No problems for years. But I took PC2 off to have it do different tasks for a while. When done, copied the suite of VB scripts from PC1 over to PC2 and launched. PC2 now throws some run time errors that PC1 does not. For example:
If objFile.Size > 50 then
gets an error "Object doesn't support this property or method"
Runs fine on PC1, run time error on PC2. Might there be some difference in whatever software interprets the VBScripts? I'm totally unfamiliar with that aspect.