File is not deleted in remote server by FSO

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
Orgil [ Fr, 22 Juni 2007 12:57 ] [ ID #1745790 ]

Re: File is not deleted in remote server by FSO

"Orgil" <orgilhp [at] yahoo.com> wrote in message
news:1182509833.460751.112620 [at] 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"
me [ Fr, 22 Juni 2007 17:24 ] [ ID #1745791 ]

Re: File is not deleted in remote server by FSO

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" <orgilhp [at] yahoo.com> wrote in message news:1182509833.460751.112620 [at] 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
>
Jon Paal [ Fr, 22 Juni 2007 18:51 ] [ ID #1745793 ]
Webserver » microsoft.public.inetserver.asp.general » File is not deleted in remote server by FSO

Vorheriges Thema: Free books and exams info
Nächstes Thema: oqjazthywt