尝试在此处打开第二个文件进行写入时,我一直被拒绝许可。我知道第一个文件可以正常打开,因为我可以将它写到屏幕上,并且我已经为用户设置了写权限。这么简单,我都被它蒙蔽了???
css_org = server.MapPath("style.css")
css_new = server.MapPath("new_style.css")
Set fso = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1
Const ForWriting = 2
Set objFile1 = fso.OpenTextFile (css_org, ForReading)
Set objFile2 = fso.OpenTextFile (css_new, ForWriting, True) ' 500 error on this line