File is not deleted in remote server by FSO

O

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
 
T

ThatsIT.net.au

Orgil said:
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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top