Path info for VBscript from HTM page
From: Ko Vijn (ko_at_nothere.nnr)
Date: 04/25/04
- Next message: Al Dunbar [MS-MVP]: "Re: Tabbed Pages ?"
- Previous message: Al Dunbar [MS-MVP]: "Re: code for a tab in a string?"
- Next in thread: juavizga: "Re: Path info for VBscript from HTM page"
- Reply: juavizga: "Re: Path info for VBscript from HTM page"
- Reply: Al Dunbar [MS-MVP]: "Re: Path info for VBscript from HTM page"
- Reply: Alexander Popkov: "Re: Path info for VBscript from HTM page"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 25 Apr 2004 18:44:41 +0200
I would like to run a vbscript from a html page on my website.
Being new to this game I made something like:
Set fso = CreateObject("Scripting.FileSystemObject")
set f=fso.opentextfile("mytext.txt", 8, true)
f.writeLine "this is new text"
f.close
This script was placed in a html file (under Frontpage), located in folder
c:\my documents\myweb.
The script runs fine, but the file mytext.txt is placed in the folder
C:\Documents and Setting/MyName, when I run the script under Frontpage, and
it is put on my Desktop when I run the script from the HTML file. When I
upload the html file to my website and run the script I get an error.
Neither is what I want, because basically I want to access (for read and/or
write) a textfile located in the folder with my html document with the
script in it, be it local on my PC or on my Website.
So, if my_file.html (with a script in it) how do I retrieve its absolute or
relative path, when it can sit on my PC or the Website with my provider
Thanks for any suggestions.
Ko Vijn
- Next message: Al Dunbar [MS-MVP]: "Re: Tabbed Pages ?"
- Previous message: Al Dunbar [MS-MVP]: "Re: code for a tab in a string?"
- Next in thread: juavizga: "Re: Path info for VBscript from HTM page"
- Reply: juavizga: "Re: Path info for VBscript from HTM page"
- Reply: Al Dunbar [MS-MVP]: "Re: Path info for VBscript from HTM page"
- Reply: Alexander Popkov: "Re: Path info for VBscript from HTM page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|