Problem running VB Script with HouseBot
Posted: Mon Feb 02, 2009 7:17 pm
Shown below is a snippet of code that runs without error when I run it outside of HouseBot. When I run it from a HouseBot Task, the compiler gives me an error....."Variable is undefined: WScript" and points to the last line shown below. Any ideas why or how to fix? Note - I do NOT use a C: drive letter designation. My bootable (and Windows) drive is letter E: Thanks for any feedback.
Option Explicit
Dim strText, sPath, oFSO, oFolder, oFiles, bolFileIsNewEnough, dFileModDate, oFile, PopInfo, WshShell
sPath = "E:\Documents and Settings\_kzpbb2\Desktop\Scanner Audio Files"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
Option Explicit
Dim strText, sPath, oFSO, oFolder, oFiles, bolFileIsNewEnough, dFileModDate, oFile, PopInfo, WshShell
sPath = "E:\Documents and Settings\_kzpbb2\Desktop\Scanner Audio Files"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")