ASP:A question about vbscript

From: chn (qchen@beijing.sema.slb.com)
Date: 03/25/03


From: "chn" <qchen@beijing.sema.slb.com>
Date: Mon, 24 Mar 2003 17:08:11 -0800


HI all:
  I have a question.
I try to use vbscript to open a client side 's file and read some
information from the file.But failed.I can not find the reason.Didnit show
any error message to me.My code like the following.Please help me to solve
it.Thanks.
client side:
<SCRIPT LANGUAGE="VBScript">
   Dim fso, f1, ts, s
   Const ForReading = 1
   Set fso = CreateObject("Scripting.FileSystemObject")
  Set ts = fso.OpenTextFile("c:\testfile.txt", ForReading)
  s = ts.ReadLine
     ts.Close
   fso.close
  msgbox s
</SCRIPT>



Relevant Pages

  • Re: Can MsgBox be used in ASP file ?
    ... Inside your server side code you are attempting to ... If this were to work then your msgbox would appear on ... the server not the client. ... side vbscript or you may be better off moving that to vbscript so it works ...
    (microsoft.public.scripting.vbscript)
  • Re: GAC hell
    ... These engines work with managed objects, much in the way WSH works with COM objects, but they're different engines, at least the JScript engine is. ... The VBScript seems to be doing a lot of stuff in unmanaged code, so for all I know, they're somehow using WSH underneath, but I doubt it since I don't see how it would deal with managed objects. ... So my question has to do with the resolution of referenced managed assemblies, ... The scripting engine is a COM client and COM uses the registry to locate the COM server DLLthat contains the components as referred to by the scripts. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Function Help Required
    ... VBScript is running on the server as part of the ASP page. ... The output in this case is JScript ... code that will be executed by the client in the browser. ... that the ArrayOfPlayerCodes has had the spaces removed form it's ...
    (microsoft.public.scripting.jscript)
  • Re: VBScript on linux browsers
    ... > Is there any browser on linux that supports VBScript? ... > application called flexcube which uses VBScript on client side. ...
    (comp.os.linux.misc)
  • Re: Get client name
    ... I didn't realize you meant the client name from a web app. ... can even do that with VBScript or Javascript. ... > bye Maurizio ...
    (microsoft.public.dotnet.framework.aspnet)