473,387 Members | 1,569 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.

How can we know if the delete process is finished ?

Hello

I would like to know when my deleting process finished.For example:

public static void Main(){
myDeleteMethod();
//NextMove...
}

public static void myDeleteMethod(){
//delete something
}

Question:
How can I assure that when it goes to the NextMove the deleting process
are already finished (for example it is very big file).

Sincerely Yours,
Pujo

--
Baby Step, One Step at a time, better and better....
Nov 16 '05 #1
2 1345
I believe the method won't return until the deleting process is over.
Just to be sure, you can add
System.Diagnostics.Trace.Assert(!File.Exists(...))
at the end of myDeleteMethod()

Pujo Aji wrote:
Hello

I would like to know when my deleting process finished.For example:

public static void Main(){
myDeleteMethod();
//NextMove...
}

public static void myDeleteMethod(){
//delete something
}

Question:
How can I assure that when it goes to the NextMove the deleting process
are already finished (for example it is very big file).

Sincerely Yours,
Pujo

Nov 16 '05 #2
Thanks Uri....

On Tue, 18 Jan 2005 11:18:28 +0200, Uri Dor <ta****@newsgroups.nospam>
wrote:
I believe the method won't return until the deleting process is over.
Just to be sure, you can add
System.Diagnostics.Trace.Assert(!File.Exists(...))
at the end of myDeleteMethod()

Pujo Aji wrote:
Hello
I would like to know when my deleting process finished.For example:
public static void Main(){
myDeleteMethod();
//NextMove...
}
public static void myDeleteMethod(){
//delete something
}
Question:
How can I assure that when it goes to the NextMove the deleting
process are already finished (for example it is very big file).
Sincerely Yours,
Pujo


--
Baby Step, One Step at a time, better and better....
Nov 16 '05 #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...
1
by: Matik | last post by:
Hello to all, I have a small question. I call the SP outer the DB. The procedure deletes some record in table T1. The table T1 has a trigger after delete. This is very importand for me, that...
0
by: rob | last post by:
Hello, I have a DOS program that I need to execute from a WinForm application. This DOS program will take a long time to execute. During execution it prints out messages. While the DOS program...
2
by: Shawn | last post by:
Hi. In my application I'm handling sensitive files. I copy them from a file server and onto the webserver, but I have to delete them again as soon as the user is finished with his download. Is...
3
by: guoqi zheng | last post by:
Dear sir, There is an import tool on my web application, user can upload Ms Access file, the file is saved at a temp folder on the server. After the import is finished, for security reason, I...
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
1
by: Alan T | last post by:
I want to make sure my process is completed: Process.Start(); bool finished = false; while (!finsihed) { Thread.Sleep(1000); if (Process.HasExited) { Thread.Sleep(1000);
5
by: =?Utf-8?B?Z215ZXJz?= | last post by:
Hello, I am attempting to start a cmd.exe process and pass several .vbs scripts (with additional parameters) and then read the output from the scripts and make "notes" in a DataTable (the...
6
by: fyitang | last post by:
hi guys, here is the sample: string strFileFullName = ""; try { FileInfo currentFile = GetOneFile("some directory"); strFileFullName = currentFile.FullName; // do someting...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.