|
 |
asptoday_discuss thread: Client Side Scripting
Message #1 by "Sheetal Bhat" <Sheetal_Bhat@s...> on Thu, 16 May 2002 18:40:25
|
|
I have an excel file on a shared drive of a server.I am trying to write a
client side script to copy the file from the server to my client.But I get
the foll error:
Active X cannot create object(Scripting.FileSystemObject). Where am i
going wrong?The code is:
<SCRIPT LANGUAGE=vbscript>
<!--
Dim FSO
Set FSO=CreateObject("Scripting.FileSystemObject")
FSO.CopyFile "\\usdelntws\WebiSDK\Profiles\profile1.txt","C:\Windows\Deskto
p\"
//-->
</SCRIPT>
The name of the server is usdelntws and WebiSDK is a shared folder with
full control to everyone.Error ocurs at the foll line:
Set FSO=CreateObject("Scripting.FileSystemObject")
All helpis appreciated.Thanks in advance.
Message #2 by "Paul Stonehocker" <pauls@g...> on Sun, 19 May 2002 12:34:38 -0700
|
|
----- Original Message -----
From: "Sheetal Bhat" <Sheetal_Bhat@s...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Thursday, May 16, 2002 6:40 PM
Subject: [asptoday_discuss] Client Side Scripting
> I have an excel file on a shared drive of a server.I am trying to write a
> client side script to copy the file from the server to my client.But I get
> the foll error:
>
> Active X cannot create object(Scripting.FileSystemObject). Where am i
> going wrong?The code is:
>
> <SCRIPT LANGUAGE=vbscript>
> <!--
> Dim FSO
==my edit==========
> Set FSO = Server.CreateObject("Scripting.FileSystemObject")
===============
> FSO.CopyFile
"\\usdelntws\WebiSDK\Profiles\profile1.txt","C:\Windows\Deskto
> p\"
>
> //-->
> </SCRIPT>
>
> The name of the server is usdelntws and WebiSDK is a shared folder with
> full control to everyone.Error ocurs at the foll line:
> Set FSO=CreateObject("Scripting.FileSystemObject")
>
>
> All helpis appreciated.Thanks in advance.
Message #3 by "=?iso-8859-1?q?Laeg=20Ent.?=" <laeg_enterprises@y...> on Tue, 21 May 2002 09:36:44 +0100 (BST)
|
|
<SCRIPT LANGUAGE=vbscript RUNAT=SERVER>
--- Paul Stonehocker <pauls@g...> wrote: >
> ----- Original Message -----
> From: "Sheetal Bhat" <Sheetal_Bhat@s...>
> To: "ASPToday Discuss"
> <asptoday_discuss@p...>
> Sent: Thursday, May 16, 2002 6:40 PM
> Subject: [asptoday_discuss] Client Side Scripting
>
>
> > I have an excel file on a shared drive of a
> server.I am trying to write a
> > client side script to copy the file from the
> server to my client.But I get
> > the foll error:
> >
> > Active X cannot create
> object(Scripting.FileSystemObject). Where am i
> > going wrong?The code is:
> >
> > <SCRIPT LANGUAGE=vbscript>
> > <!--
> > Dim FSO
> ==my edit==========
> > Set FSO
> Server.CreateObject("Scripting.FileSystemObject")
> ===============
> > FSO.CopyFile
>
"\\usdelntws\WebiSDK\Profiles\profile1.txt","C:\Windows\Deskto
> > p\"
> >
> > //-->
> > </SCRIPT>
> >
> > The name of the server is usdelntws and WebiSDK is
> a shared folder with
> > full control to everyone.Error ocurs at the foll
> line:
> > Set FSO=CreateObject("Scripting.FileSystemObject")
> >
> >
> > All helpis appreciated.Thanks in advance.
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
|
|
 |