Click here to Skip to main content
15,919,358 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Team work Pin
Pete O'Hanlon16-Jul-09 11:23
mvePete O'Hanlon16-Jul-09 11:23 
GeneralRe: Team work Pin
Patrick Fox28-Jul-09 10:30
Patrick Fox28-Jul-09 10:30 
QuestionNeed guidance and proposal of design and implementation for an e-voting (electronic voting) system Pin
bahareh65515-Jul-09 23:17
bahareh65515-Jul-09 23:17 
AnswerRe: Need guidance and proposal of design and implementation for an e-voting (electronic voting) system Pin
K030615-Jul-09 23:38
K030615-Jul-09 23:38 
QuestionSuitable criteria for a distributed application Pin
Zeeshan Riaz15-Jul-09 11:32
Zeeshan Riaz15-Jul-09 11:32 
AnswerRe: Suitable criteria for a distributed application Pin
DaveyM6915-Jul-09 13:01
professionalDaveyM6915-Jul-09 13:01 
QuestionSingle-instance applications and batch files Pin
supercat915-Jul-09 5:59
supercat915-Jul-09 5:59 
AnswerRe: Single-instance applications and batch files Pin
Luc Pattyn16-Jul-09 1:36
sitebuilderLuc Pattyn16-Jul-09 1:36 
Hi,

a single-instance app never really is single-instance. At best the second, third or whatever instance gets launched, detects it isn't number one, and exits again, hopefully after passing its work to the first instance, maybe by sending its command line through a pipe.

how about you make the "single-instance" such that it:
- detects it isn't the first;
- sends the job to the number one instance;
- instead of exiting right away, waits for completion.

Doing it that way your batch files don't have to be aware, they would always seem to be talking to the single-instance app.

BTW: obviously you can use the Main() method's return value as the batch/DOS exit code.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Single-instance applications and batch files Pin
supercat916-Jul-09 13:20
supercat916-Jul-09 13:20 
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn16-Jul-09 13:26
sitebuilderLuc Pattyn16-Jul-09 13:26 
GeneralRe: Single-instance applications and batch files Pin
supercat917-Jul-09 4:41
supercat917-Jul-09 4:41 
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn17-Jul-09 11:40
sitebuilderLuc Pattyn17-Jul-09 11:40 
GeneralRe: Single-instance applications and batch files Pin
supercat917-Jul-09 13:21
supercat917-Jul-09 13:21 
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn17-Jul-09 13:57
sitebuilderLuc Pattyn17-Jul-09 13:57 
GeneralRe: Single-instance applications and batch files Pin
supercat920-Jul-09 4:56
supercat920-Jul-09 4:56 
QuestionSpell Check Recommendations Pin
musefan15-Jul-09 5:11
musefan15-Jul-09 5:11 
AnswerRe: Spell Check Recommendations Pin
Luc Pattyn15-Jul-09 6:30
sitebuilderLuc Pattyn15-Jul-09 6:30 
GeneralRe: Spell Check Recommendations Pin
musefan15-Jul-09 6:43
musefan15-Jul-09 6:43 
GeneralRe: Spell Check Recommendations Pin
Luc Pattyn15-Jul-09 6:45
sitebuilderLuc Pattyn15-Jul-09 6:45 
Questionhow to pass values from pop-up window(child page) to a master page(parant page) datagrid? please help me out [modified] Pin
staycool_khan15-Jul-09 4:11
staycool_khan15-Jul-09 4:11 
AnswerRe: how to pass values from pop-up window(child page) to a master page(parant page) datagrid? please help me out Pin
Not Active15-Jul-09 4:56
mentorNot Active15-Jul-09 4:56 
QuestionHow to create static library in C++ .net 2008 and call it from VC6 Pin
stefanidou15-Jul-09 1:46
stefanidou15-Jul-09 1:46 
AnswerRe: How to create static library in C++ .net 2008 and call it from VC6 Pin
Ravi Bhavnani18-Jul-09 6:13
professionalRavi Bhavnani18-Jul-09 6:13 
QuestionHow can patch .NET assembly code Pin
ham_tim_hieu14-Jul-09 21:29
ham_tim_hieu14-Jul-09 21:29 
AnswerRe: How can patch .NET assembly code Pin
Luc Pattyn15-Jul-09 2:55
sitebuilderLuc Pattyn15-Jul-09 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.