R
ruca
Private Sub find_file(ByVal strFile)
Dim Path As String
Dim NewFile As StreamWriter
strFile = "Extern\" & strFile
Path = Server.MapPath(strFile)
If Not File.Exists(Path ) Then
NewFile = File.CreateText(Path )
NewFile .Close()
End If
End Sub
I have this to find (and create, if not found) a file. The problem is that
it's not working.
It gives me an error like this:
Access to the path "c:\(all path)\Extern\novo.txt" is denied
I think that I have to set permissions, but where??? I already put the Read
an Write Permissions for that application in IIS, and in the right path too.
How can I set this up?
It's missing anything?
Dim Path As String
Dim NewFile As StreamWriter
strFile = "Extern\" & strFile
Path = Server.MapPath(strFile)
If Not File.Exists(Path ) Then
NewFile = File.CreateText(Path )
NewFile .Close()
End If
End Sub
I have this to find (and create, if not found) a file. The problem is that
it's not working.
It gives me an error like this:
Access to the path "c:\(all path)\Extern\novo.txt" is denied
I think that I have to set permissions, but where??? I already put the Read
an Write Permissions for that application in IIS, and in the right path too.
How can I set this up?
It's missing anything?