why doesn't this simple script work?

Results 1 to 2 of 2

Thread: why doesn't this simple script work?

  1. #1
    Join Date
    Dec 1969

    Default why doesn't this simple script work?

    this script produces the error "Path not found" but I&#039;m pretty certain that that is where the text file is. Please someone tell me what&#039;s wrong!<BR><BR>&#060;%<BR>dim fs,f<BR>set fs=Server.CreateObject("Scripting.FileSystemObject ")<BR>set f=fs.OpenTextFile("Unblockdb ext.txt")<BR>f.Write("Hello!<BR>How are you today?")<BR>Response.Write(f.ReadAll)<BR>f.Close<B R>set f=nothing<BR>set fs=nothing<BR>%&#062;

  2. #2
    RDM Guest

    Default Full Path

    I don&#039;t believe the FileSystemObject recognizes relative addressing. You&#039;ll have to use the hard path on the drive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts