473,387 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Jun 22 '07 #1
2 1576

"Orgil" <or*****@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.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"

Jun 22 '07 #2
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" <or*****@yahoo.comwrote in message news:11**********************@p77g2000hsh.googlegr oups.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

Jun 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Peter A. Schott | last post by:
If I want to verify that a file has finished writing before deleting the remote file, what would be the best method? Current code on Python 2.4: #filename - remote FTP server File Name...
4
by: Rene' Nielsen | last post by:
Context: Running Windows 2003 Server on an intranet. A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
1
by: Saracen | last post by:
I have a major problem with trying to access a foxpro database from a web app. I have created a web app which is deployed on a server. The foxpro database (dbf) is on a different server. The...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
1
by: Jarrod Morrison | last post by:
Hello Im sure this is possible im just not sure about the best way to approach it so any help or comments is greatly appreciated I have a windows service program that runs at startup and...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
1
by: loisk | last post by:
Hi, The .ldb file was deleted fine when I closed my Access DB yesterday. The .ldb file is created when I tried to open the same db this morning, and it won't open and the .ldb file is persistant...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.