I am calling one process named wiaacmgr.exe for scanning an image.
now I want to call an event named "test" when this scanning of file is completed.
In test i have a code that renames the scanned file.
So how can i do this. Please help me.

This is my code which I have written to call my process.

objpro.StartInfo.FileName = Server.MapPath("..\\scan\\wiaacmgr.exe");
objpro.EnableRaisingEvents = true;
objpro.Start();
objpro.Exited += new EventHandler(test_exit);
objpro.WaitForExit();

Threading could be a solution

thanx for suggestion dnanetwork.
but can u give any example or any code for threading using in this context.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.