PDA

View Full Version : VB Error


mseawell
07-12-2004, 05:37 AM
I'm totally new to scripting so maybe this is easy to fix. I'm trying to write a script that copies a file from my computer to multiple computers (I have a text file with the name of the computers I want the file copied to) This is what I tried to write:

Const OverwriteExisting = True
Set ojbFSO = CreateObject ("Scripting.FileSystemObject")
objFSO.CopyFile "C:\Windows2000-KB828035-x86-ENU.exe" , "C:\", OverwriteExisting

But I get this error: Microsoft VBScript runtime error: Object required: 'objFSO'

I don't know what to do next. Help!!:(

cholan
07-27-2004, 01:28 AM
Const OverwriteExisting = True
Set ojbFSO = CreateObject ("Scripting.FileSystemObject")
objFSO.CopyFile "C:\Windows2000-KB828035-x86-ENU.exe" , "C:\", OverwriteExisting


spelling mistake.... :)
ojbFSO is used to set instead of objFSO....

Cholan