| |
starrow
Posts: 1
Score: 0
Joined: 7/4/2003
From:
Status: offline
|
'update the hyperlinks in the webpages public const ForWriting=2 dim fs set fs=createobject("scripting.filesystemobject") dim folder set folder=fs.getfolder("c:\documents and settings\administrator\my documents\oa") dim files set files=folder.files dim htmstream,htmcontent,newhtmcontent for each f in files if right(f.name,3)="htm" then set htmstream=f.openastextstream(ForWriting) htmcontent=htmstream.readall newhtmcontent=replace(htmcontent,"asp","htm") htmstream.close end if next when the script is executed,a error message " wrong file mode "always pops out.anybody can help me?
|
|