Friday, March 23, 2012

FileSystemObject: Permission denied?

Hi,
I got the err below, nevertheless my folders have full permissions for all.
Permission denied
/vilmar/ASP_JavaScript_CSS_HTML/ajudas_asp_completos/novo_asp/novo_asp_4-12-
03/Objeto_FileSystemObject.asp, line 17
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set Arquivo = objFSO.CreateTextFile("c:\Texto_teste.txt", True)
Arquivo.WriteLine("Isto é um texto." & vbcrlf & "Outra linha do texto e " &
vbcrlf & "...outra linha do texto.")
Arquivo.Close
Set Arquivo = objFSO.GetFile("c:\Texto_teste.txt")
Arquivo.Move "D:\Testes_Apostilas" ' »»line 17
Thanks,
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC"news.microsoft.com" <suporte@.hitecnet.com.br> wrote in message
news:eoiz6cNwDHA.2452@.tk2msftngp13.phx.gbl...
> Hi,
> I got the err below, nevertheless my folders have full permissions for
all.
> Permission denied
>
/vilmar/ASP_JavaScript_CSS_HTML/ajudas_asp_completos/novo_asp/novo_asp_4-12-
> 03/Objeto_FileSystemObject.asp, line 17
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set Arquivo = objFSO.CreateTextFile("c:\Texto_teste.txt", True)
> Arquivo.WriteLine("Isto é um texto." & vbcrlf & "Outra linha do texto e "
&
> vbcrlf & "...outra linha do texto.")
> Arquivo.Close
> Set Arquivo = objFSO.GetFile("c:\Texto_teste.txt")
> Arquivo.Move "D:\Testes_Apostilas" ' »»line 17
Your folders may have full permissions -- however, does the NTFS level have
adequate permissions for whatever process is running your asp script?
Stevesql

No comments:

Post a Comment