I have a script that I was running with no problems at all, and all of a sudden I'm getting this error. "Could not locate automation class named "Scripting.FileSystemObject".
Line: 4
Char: 1
Code 80020009
Source WScript.CreateObject
Here is the first few lines of the script..
' Create the objects that we'll be using
Set shell = WScript.CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
Set NET = WScript.CreateObject("WScript.Network")
' Initialize Variables
ProfPath = shell.ExpandEnvironmentStrings("%USERPROFILE%")
AppData = shell.ExpandEnvironmentStrings("%APPDATA%")
AllUsers = shell.ExpandEnvironmentStrings("C:\Documents and Settings\All Users")
UName = NET.UserName
Anyone run across this before. Must warn you, I am not script savvy..
Thanks in advance.
Clasik
Line: 4
Char: 1
Code 80020009
Source WScript.CreateObject
Here is the first few lines of the script..
' Create the objects that we'll be using
Set shell = WScript.CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
Set NET = WScript.CreateObject("WScript.Network")
' Initialize Variables
ProfPath = shell.ExpandEnvironmentStrings("%USERPROFILE%")
AppData = shell.ExpandEnvironmentStrings("%APPDATA%")
AllUsers = shell.ExpandEnvironmentStrings("C:\Documents and Settings\All Users")
UName = NET.UserName
Anyone run across this before. Must warn you, I am not script savvy..
Thanks in advance.
Clasik