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:%23vaMSUOXDHA.1004@TK2MSFTNGP12.phx.gbl...[color=blue]
> I'll bet you a dollar. :P
>
> Actually, I think that after he corrects the filename line, he will then[/color]
run[color=blue]
> into the permissions problem you suggest. For the love of God, I would[/color]
hope[color=blue]
> that IUSR doesn't have rights to boot.ini.
>
> Ray at work
>
> "Tom B" <shuckle@hotmail.com> wrote in message
> news:OmdL5OOXDHA.1492@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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:eRO9GFOXDHA.2648@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > You're trying to name the FILE with a \ and : in it. The name of the[/color][/color]
> file[color=green][color=darkred]
> > > would not be C:\boot.old; it would just be boot.old.
> > >
> > > Ray at work
> > >
> > > "Mats" <webmaster@databyggarna.com> wrote in message
> > > news:51955fa2.0308070321.2d4ca472@posting.google.c om...
> > > > As there is no change filename command in vbscript you have to take[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > > 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[/color][/color]
>
>[/color]