I get a compilation error when I try to run the following vbs code from a command prompt in Windows 7.
Option Explicit
Dim objNetwork, strRemotePath1, strRem
Check you are not using extended charater like á é í ó ú ñ in a variable's name
A possible problem is how your file was encoded; try to save it as ANSI and run it again.
FYI for those with the same problem in the future, to fix this: