Search Result
Collapse
3 results in 0.0040 seconds.
Keywords
Members
Tags
-
How do I Wait for files to finish populating a directory before processing...
I am using the FilesystemWatch er to look for files in a Directory, it does not matter what the file is. After a file appears it starts my ftp process and I end up with a bunch of 0 byte files because it processed before all the files arrived. I would like to WaitFor... (Files_Created) to finish but dont seem to have the right syntax to get this to work properly. I have working code up until it loops. As you can see I have tried various processes... -
WaitForExit();
How permanent is WaitForExit(); ? I mean is there anything/ an
alternative one can do to break the wait otherwise I will run my thread
in a separate function, and control it by global variables.
Reason - a CMD.EXE thread, with a console application running, which we
need to cancel out of prior to the thread running its course.
Here is what we have:
ProcessStartInf o psi = new
ProcessStartInf o("CMD.EXE",que ry);... -
Process.Start Problem with WaitForExit(), WaitForExit DOES NOT WA
I have the code below, the first process takes about 10 minutes to finish.
But the waitForExit doesn't seem to wait when I debug the program, it go
immediately to execute code after the WaitForExit(). The first process
basically launch a DOS batch file to do some task, am I missing anything?
executable = "setup_listener .bat";
process1 = new Process();
process1.StartI nfo.UseShellExe cute = false;...