• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

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!
0
pfarber22
Asked:
pfarber22
1 Solution
 
rettiseertCommented:
Just erase Server. from your code:

set var = CreateObject("Scripting.FileSystemObject")
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now