File is not deleted in remote server by FSO
File is not deleted in remote server by FSO
am 22.06.2007 12:57:13 von Orgil
Hi all,
I just want to delete a file in a server by FSO.
My code is:
Set objFSOD = Server.CreateObject("Scripting.FileSystemObject")
objFSOD.DeleteFile Server.MapPath(".") + "\Greetings\" + sFileName1,
True
Set objFSOD = Nothing
When I check the code locally, everything is fine.
I have two remote servers. When I check the code in each servers, one
is fine and other is thrown a error. But the error msg is in Korean
language while I'm not korean, that is why I can't read the error
msg.
What would be the error msg about?
The sFileName1 was always correct every time I checked.
Please, suggest me, if you have any guess.
....Orgil
Re: File is not deleted in remote server by FSO
am 22.06.2007 17:24:39 von me
"Orgil" wrote in message
news:1182509833.460751.112620@p77g2000hsh.googlegroups.com.. .
> Hi all,
> I just want to delete a file in a server by FSO.
> My code is:
>
> Set objFSOD = Server.CreateObject("Scripting.FileSystemObject")
> objFSOD.DeleteFile Server.MapPath(".") + "\Greetings\" + sFileName1,
> True
> Set objFSOD = Nothing
>
> When I check the code locally, everything is fine.
> I have two remote servers. When I check the code in each servers, one
> is fine and other is thrown a error. But the error msg is in Korean
> language while I'm not korean, that is why I can't read the error
> msg.
> What would be the error msg about?
> The sFileName1 was always correct every time I checked.
>
> Please, suggest me, if you have any guess.
> ...Orgil
>
my guess is "access denied"
Re: File is not deleted in remote server by FSO
am 22.06.2007 18:51:42 von Jon Paal
have page display result of
Server.MapPath(".") + "\Greetings\" + sFileName1
and make sure the full path is correct
or
ask the webhost to provide error message translation
"Orgil" wrote in message news:1182509833.460751.112620@p77g2000hsh.googlegroups.com.. .
> Hi all,
> I just want to delete a file in a server by FSO.
> My code is:
>
> Set objFSOD = Server.CreateObject("Scripting.FileSystemObject")
> objFSOD.DeleteFile Server.MapPath(".") + "\Greetings\" + sFileName1,
> True
> Set objFSOD = Nothing
>
> When I check the code locally, everything is fine.
> I have two remote servers. When I check the code in each servers, one
> is fine and other is thrown a error. But the error msg is in Korean
> language while I'm not korean, that is why I can't read the error
> msg.
> What would be the error msg about?
> The sFileName1 was always correct every time I checked.
>
> Please, suggest me, if you have any guess.
> ...Orgil
>