« 徒步青年宫-松浦大桥-虎园我家我设计 »

如何解决“上传图片出现: ADODB.Stream 错误 '800a0bbc' 错误”

ADODB.Stream 错误 '800a0bbc' 写入文件失败。

看起来是文件夹的权限问题,但权限设置上并没有问题,怎么修改也没解决。

搜索后发现网友的解决方案,果然好用,存档备查。

 
function makefilename(fname)
fname = now()
fname = replace(fname,"-","")'时间格式
fname = replace(fname," ","")
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"","")
fname = replace(fname,"","")
makefilename=fname
end function
可是在VISTA系统中根本没有2009-2-25这种格式,所以肯定是因为这个时间格式的错误了。VISTA系统的时间格式是:2009/2/25这样的,所以将程序改成
function makefilename(fname)
fname = now()
fname = replace(fname,"/","")'时间格式
fname = replace(fname," ","")
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"","")
fname = replace(fname,"","")
makefilename=fname
endfunction
修改运行成功了。困扰多时的问题解决了。

 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。