I'm trying to create a file using the FileSystemObject but I get a
"Permision denied" error. By the way, I get the same error when I invoque
the msgbox method. I'm using Windows XP pro SP1 installed. Does someone
would have a cue.
If you need more infos, please, do not hesiate to ask.
Thank you in advance.
--
Roland
This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
"Étienne Rivest" <etienne.PR...@sympatico.com> wrote in message
news:2poAb.16415$yd.26...@news20.bellglobal.com...
The script has nothing special. Here is the method, downloaded from the
Internet. The variables not declared within the method are global to the
.ASP file.
Thank you,
Etienne
Public Sub SaveToDisk(sPath)
Dim oFS, oFile
Dim nIndex
If sPath = "" Or FileName = "" Then Exit Sub
If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
If Not oFS.FolderExists(sPath) Then Exit Sub
Set oFile = oFS.CreateTextFile(sPath & FileName, True)
For nIndex = 1 to LenB(FileData)
oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
Next
oFile.Close
End Sub
"Roland Hall" <nobody@nowhere> a écrit dans le message de
news:e727zzEv...@tk2msftngp13.phx.gbl...
Instead of adding the IUSR to the Admin group, why not give specific rights
to the path for that user?