Jump to content

Juz

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Juz

  • Rank
    Newbie
  1. Hello everyone I'm pretty new to vbscript but I'm trying to make a script to check usb drives have been changed for backups. This script bellow works fine when I double click it but when I use cscript.exe or wscript.exe and even WHS it runs through the script but does not execute the code except for WScript.Echo "Worked"??? Set obj = CreateObject("Scripting.FileSystemObject") Set objTextFile = obj.OpenTextFile("C:\purplec\BackupCheck\ListDrives.txt",1) For i = 1 to 84 objTextFile.ReadLine Next strLine = objTextFile.ReadLine objTextFile.Close If (obj.FileExists("disk1.txt")) Then Set ob
×
×
  • Create New...