473,396 Members | 1,693 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,396 software developers and data experts.

Running app accepting commands

Hi,

I'm designing an application, and I would like to be able to receive
external commands... I would like a behavior like eMule, when you click
on an ed2k link, the link is added to eMule, even if this app is running...

How can I handle this behavior in my app ?

TIA
Dec 5 '05 #1
2 1199
Franck,

In this case, you have to create an asynchronous pluggable protocol (in
the case of IE). This will allow you to handle your own url scheme.
However, you have to implement it through COM interop, as there is no .NET
way to do it.

Then, when the link is processed, if the app is running (I recommend
having a unique named mutex which is held by the running instance of your
app), you can then use remoting to communicate with it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:O5****************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm designing an application, and I would like to be able to receive
external commands... I would like a behavior like eMule, when you click on
an ed2k link, the link is added to eMule, even if this app is running...

How can I handle this behavior in my app ?

TIA

Dec 5 '05 #2
Thank you, but I didnt explain correctly my problem...

I will do a new post.

Nicholas Paldino [.NET/C# MVP] wrote:
Franck,

In this case, you have to create an asynchronous pluggable protocol (in
the case of IE). This will allow you to handle your own url scheme.
However, you have to implement it through COM interop, as there is no .NET
way to do it.

Then, when the link is processed, if the app is running (I recommend
having a unique named mutex which is held by the running instance of your
app), you can then use remoting to communicate with it.

Hope this helps.

Dec 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Will Seay | last post by:
At the end of this message I've pasted a script we're trying to modify slightly. I don't believe it is VBscript or javascript but these are the closest groups I could find with my limited...
3
by: Hal Vaughan | last post by:
I need to be able to run external commands from within a Java program, on Linux and Windows (and eventually OSX). Under most circumstances there is no problem, but if the path I specify as part of...
30
by: Stephen Ferg | last post by:
I have a question that is not directly Python-related. But I thought I'd ask the most erudite group that I know... :-) When did Windows start accepting the forward slash as a path separator...
9
by: Brian Roberts | last post by:
I have a command line Python program that sometimes takes a bit (several minutes) to run. I want to provide an optional method for an impatient user (me!) to check the status of the program. The...
1
by: stealthwang | last post by:
I'm still very new to Python, after decideding to learn a true programming language (rather then a scripting language, i like to think i'm a intermediate PHP user). I decided for my first project I...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
9
by: kapsi | last post by:
Hey all, I was just wondering as to how to implement dos commands and windows commands using the C language? any ideas?
14
by: miago | last post by:
Searching this forum I found an example of running Unix commands from Python;I wonder if there is a way to get the output of windows commands on a string using Python.Thanks in advance; Miago.
6
by: Mike | last post by:
I'm having trouble running TSQL commands when SQL2005 is in single- user mode. I've restarted SQL with -m, -c, -T3608 set in the startup options. I can get into Config manager OK, but as soon...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.