Announcement

Collapse
No announcement yet.

Need help with simple script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with simple script

    I have a very simple script:
    sub main
    xcopy "c:\Program Files\Weather View 32 600\*.*" "c:\Program Files\Weather View 32 600\backup" /Y
    end sub

    It works fine from the command prompt, but when I test the event I get a "Script error in file: 1025:Expected end of statement in line 2"

    What am I doing wrong?

    Thanks!

    #2
    ctbnyc,
    xcopy is a dos command and not a vbscript command so it can not be ran via a script.

    It appears you are backing up a directory. I would highly suggest using one of the already developed backup scripts. One of the easiest and most simple to use is Rotating_backup.txt located here.

    http://ubb.homeseer.com/6/ubb.x?a=tp...3&m=9262981305
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Thanks, Rupp!

      Comment

      Working...
      X