Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with the Scripting.FileSystemObject
Message
 
To
12/03/2001 21:18:38
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00484304
Message ID:
00484395
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform