查看: 717|回复: 6
|
asp : access permission
[复制链接]
|
|
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/mywebs/def.asp, line 28
这是小弟的code , 可是不知道为什么出现了以上的问题
<%
disk = request.form("drive")
set nowdisc = server.createObject("Scripting.FilesystemObject")
set fs = server.createObject("Scripting.FilesystemObject")
Set fsCopy = fs.GetFile("\Inetpub\wwwroot\MyWebs\log.txt")
set v = nowdisc.getdrive(disk)
if(v.isready) then
dt = v.drivetype
if(v.freespace < v.totalsize) then
if(dt = 1) then 'floppy
response.write "i not so courage using floppy disk , if you insist to do so , flash disk is welcome"
else if (dt = 2) then
response.write "ok ! hard disk is welcome"
fs.copyfile "\Inetpub\wwwroot\MyWebs\log.txt", "c:\raff"
fs = nothing
else if (dt = 4) then
response.write "ok ! cd rom"
else if (dt = 5) then
response.write "ok ! flash drive"
End if
End if
End if
End if
Else
response.write "no enough space"
End if
End if
%> |
|
|
|
|
|
|
|
发表于 9-8-2006 03:27 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 9-8-2006 05:20 PM
|
显示全部楼层
原帖由 max5007 于 9-8-2006 03:27 PM 发表
你的line 28是什么CODE?
这是line 28 的code
fs.copyfile "\Inetpub\wwwroot\MyWebs\log.txt", "c:\raff"
==================================================================================
这一行,小弟忘了delete,别理这一条
Set fsCopy = fs.GetFile("\Inetpub\wwwroot\MyWebs\log.txt") |
|
|
|
|
|
|
|
发表于 9-8-2006 06:00 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 10-8-2006 12:04 AM
|
显示全部楼层
我看了你的贴,找不到你所说的Ppermision wizard,我去到我right click IIS->ALL TASK没有Permission wizard, 只有Restart IIS和Backup/Restore configuration...可一教我那里弄吗??? |
|
|
|
|
|
|
|
发表于 10-8-2006 12:06 AM
|
显示全部楼层
原帖由 Legend 于 10-8-2006 12:04 AM 发表
我看了你的贴,找不到你所说的Ppermision wizard,我去到我right click IIS->ALL TASK没有Permission wizard, 只有Restart IIS和Backup/Restore configuration...可一教我那里弄吗???
你可以在你的 windows explorer 里,
right click folder -> sharing and security -> security |
|
|
|
|
|
|
|
发表于 11-8-2006 06:57 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|