>Hi all,
>what the hell is going on.
>i have the following snippet of code:
>
>ofso = CreateObject'Scripting.FileSystemObject')
>oFileHandler = ofso.GetFilefilename)
>ofileHandler.Delete
>
>
>class definition SCRIPTING.FILESYSTEMOBJECT is not found
>
>where file name is obviously the location and name of a file.
>all this code works well from my machine here running win2000 workstation, and runs on win98SE with no problems at all. even on most win95 machines. i say most as i have a client machine that is having problems. they get an error:
>
>what is going on. HELP
>Jordan
Just to add to what Erik told you, if you wish to check for the existence of the WSH (and install, if necessary), check the registry for VBScript.RegExp. This will tell you whether or not the most recent version of the WSH is installed.
George
Ubi caritas et amor, deus ibi est