hi all,
I want to develop a console app and call it from my main application. how to do it
If i want to pass any arguments to console application then
Is there any mechanisms tht u appln made by me, send msgs plz help needed.How to make the console appln to run in background

Console Applications Help needed
Shilov
Yes, you could use any IPC methods available to communicate between applications.
No, that won't stop the second application unless you stop it using Process class.
Yes, either sleep for specific period if time or (better) use system events (e.g. CeRunAppAtTime()) to start your application, do whatever's needed and terminate.
The question here is: do you really need a second application Why can't you simply hide all windows on the first one so it would run in background
Mark Traudt
hi,
really thanx for ur help. Actually the problem that i m facing is, I have main application from which user selects the images he want to upload to the server. this uploading should work in background and at the same time user can select other images for uploading. Now, when i exit my main application, if the console appln does not complete its work then, it should still remain running, even if the main appl close and exits.
please help needed. plz.
dotnetkiwi
also i want that if i start the console appln frm the main application, if i close the application, the console appln shud still run. in using the Process, its gets stopped. any ideas
thanx in advance
jasmine pham
hi,
thanx for the help. By msgs i meant, is there any way to have communication between the 2 applications Like RPC (remote procedure call) something like tht.
2ndly, If i use Process.Start() and call the exe to run, if i stop the main appln from where i called the another, then tht called process will also stop
Also, i want that the console appln should run after specific intervals and do the work.
is it possible to exit the console appln after the work is done
Folyjon
1. You create console application by choosing console template and use Process class to start it.
2. If you want to pass arguments, you can do so using Process class capabilities. Console application gets them as usual via Main() argument.
3. Which "msgs"
4. It would run in background (i.e. would be invisible) once started. It might be visible on devices with console installed.
bhmsaad
There's no need for a second application at all. Simply don't exit your main application after user selected images, hide all it's form and download images in background instead.