Hello thysonj,
[1] .copyfile does not return an object-type, hence, it will error out using set keyword.
[2] In fact .copyfile does not return anything. It returns empty. This is correct :
[tt]
cssFile = objFSO.CopyFile("c:\file.txt","c:\inetpub\")
or
cssFile = objFSO.CopyFile("c:\file.txt","c:\inetpub\",true)
[/tt]
But cssFile is characterized as:
[tt]
cssFile=empty
vartype(cssFile)=0
[/tt]
[3] But, if you neglect the left-hand-side, then you should not use parenthesis.
[tt]
objFSO.CopyFile "c:\file.txt","c:\inetpub\"
or
objFSO.CopyFile "c:\file.txt","c:\inetpub\", true
[/tt]
regards - tsuji