Do you take paypal?
I tried the following, I gave permission for the iusr_mymachine for full
control of my c: drive.
Obviously I commented out one section to test the other.
The first code wouldn't work with c:\blabla.old (as Ray said) but the second
code did.
Perhaps Aaron should update
http://www.aspfaq.com/show.asp?id=2074
to reflect that
<%@ Language = "VBScript" %>
<html>
<body>
<%
set fso = server.createobject("scripting.filesystemobject")
set fs = fso.GetFile("c:\blabla.txt")
fs.name = "blabla.old"
set fs = nothing
set fso = nothing
%>
<%
Set fso = Server.CreateObject("Scripting.FileSystemObject")
fso.moveFile "c:\blabla.txt", "c:\blabla.old"
Set fso = Nothing
%>
</body>
</html>
<%
%>
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'll bet you a dollar. :P
Actually, I think that after he corrects the filename line, he will then
run into the permissions problem you suggest. For the love of God, I would
hope that IUSR doesn't have rights to boot.ini.
Ray at work
"Tom B" <sh*****@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl... I don't think that's a problem.
Did you give permission for blabla.txt to be manipulated by
IUSR_machinename?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eR**************@TK2MSFTNGP09.phx.gbl... You're trying to name the FILE with a \ and : in it. The name of the file would not be C:\boot.old; it would just be boot.old.
Ray at work
"Mats" <we*******@databyggarna.com> wrote in message
news:51**************************@posting.google.c om...
> As there is no change filename command in vbscript you have to take
a > diversion.
> According to aspfaq http://www.aspfaq.com/show.asp?id=2074
> the following should work:
> <%
> set fso = server.createobject("scripting.filesystemobject")
> set fs = fso.GetFile("c:\boot.ini")
> fs.name = "c:\boot.old"
> set fs = nothing
> set fso = nothing
> %>
> a) never