VBScript error

I get an error (vbscript object required: 'Server') in the following code

Dim var
set var = Server.CreateObject("Scripting.FileSystemObject")
var.CopyFile "U:\Grc.dat","c:\Documents and Settings\All Users\Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5\"
set fs=nothing


Any ideas? Thanks!
LVL 1
pfarber22Asked:
Who is Participating?
 
rettiseertCommented:
Just erase Server. from your code:

set var = CreateObject("Scripting.FileSystemObject")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.