473,666 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

run programme

hi everyone...I want to run any programme or file with my
programme.examp le any file or programme, like this "xxx.ncn".I want If
users double click this xxx.ncn this file can run by my
programme.pleas e help!!!!
Dec 25 '07 #1
6 1624
On Dec 25, 7:59 pm, "FERHAT AÇICI" <ferhatac...@gm ail.comwrote:
hi everyone...I want to run any programme or file with my
programme.examp le any file or programme, like this "xxx.ncn".I want If
users double click this xxx.ncn this file can run by my
programme.pleas e help!!!!
Hi Ferhat,
I've asked the same thing in a post and that helped:

http://groups.google.com/group/micro...6c82d053334a98

You need to use command line arguments to have the path of file:

Put this code inside your form1_load event, Sample code:

Dim cla As String() = Environment.Get CommandLineArgs ()
' Do what you want, eg: show path in msgbox
Msgbox(cla(0))

Dec 25 '07 #2
Hi Ferhat,

what you need is to asign the file ending to a herb. This can be
done by setting the appropriate registry keys or by using the
windows explorer settings which in common there is no
difference, since it will write the entries also into the registry
hives. See here:

[Extending Shortcut Menus]
http://msdn2.microsoft.com/en-us/lib...20(VS.85).aspx
Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Dec 25 '07 #3
Hi,

read the last sentence he wrote. He wants to open his application
when a user clicks on a specific file that is registered with his
application. Your exampe just fetchs the command lines given
with the application,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Dec 25 '07 #4
Kerem Bey Bilgilendirmeni z İçin Teşekkür Ederim...saygıl arımla...
Dec 25 '07 #5
On 25 Aralık, 20:56, "Kerem Gümrükcü" <kareem...@hotm ail.comwrote:
Hi,

read the last sentence he wrote. He wants to open his application
when a user clicks on a specific file that is registered with his
application. Your exampe just fetchs the command lines given
with the application,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space:http://kerem-g.spaces.live.com/
Latest Open-Source Projects:http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Kerem Bey Bilgilendirmeni z İçin Çok Teşekkür
Ederim...Saygıl arımla...FERHAT AÇICI
Dec 25 '07 #6
Sayin Ferhat Bey,

bir şey değil...

Please write/answer in english, due this is a
english newsgroup,...
Kind Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Dec 25 '07 #7

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

Similar topics

0
1244
by: cm012b5105 | last post by:
Hello i want to put an interactive text programme in to a graphical box this is a small section of my text programme s = raw_input ("Hello whats your name? ") if s=='melvyn': print "your my boss's Dad the one they call in indian language DEEP THOUGHT LITTLE HORSE" if s=='carol': print "ahhh you are my boss's mom the one they call WREATH WOMAN" if s=='rebecca':
0
1579
by: melledge | last post by:
Full Programme for XTech 2005 Announced Premier European XML Industry Event Expands Focus to "XML, the Web and Beyond"; Co-hosted by the Mozilla Foundation,W3C, and OASIS, Presenters Include BBC, IBM, Justsystem, Microsoft, Oracle, Sun Alexandria, Va. - March 7, 2005 - IDEAlliance, a leading industry association dedicated to fostering XML and other information technology
2
2000
by: NDAKI MBOULET | last post by:
J'ai un problème pour écrire un programme. Voici mon sujet: Ecrire en c++ un programme qui reçoit en entrée une suite d'instruction encadrées par les mots clés BIBODLE et LISUK dans un langage quelconque appélé Bazoréen et rend en sortie soit une liste des erreurs rencontrées lors du traitement, soit un programme source en c++, sans erreurs de syntaxe ni de semantique, compilable et exécutable. Les éléments du bazoréen sont: 1 opérateurs
5
1663
by: Pekka Jarvela | last post by:
I am a beginner and have written a C++ programme in Visual Studio ..NET. Now, programme is for time being Console application (= works in DOS window). I would however like that it had graphical user interface. Now, is there an easy way to create one in .NET environment? It should preferably have following properties: 1. Fields for inputting variable values. 2. Drop down menu for selecting working directory. What would you recommend?
5
1481
by: katekukku | last post by:
HI, I need the source code for a programme in C. It should have the basic features of a paint programme like circle, line etc, etc,. I lost a programme which wa driven by keyboard, if somebody could provide me that one it will be great. The source should be of rookie level and not too much complex. Thanks a lot SHIKHAR
18
2152
by: arnuld | last post by:
i compiled the "hello world" programme from K&R2: #include<stdio.h> int main() { printf("hello world\n"); }
4
2338
by: arnuld | last post by:
this is my final code. Can you folks advise some improvements for making this programme better? BTW, i aways compile my programme with this cmmand on Linux: g++ -ansi -pedantic -Wall -Wextra file.cpp // a programme that converts Fahrenheit temperature // to Celcius (in range 0 -
0
1011
by: =?Utf-8?B?SmF5ZQ==?= | last post by:
I have created the programme, then using the font in Office 2007. However the user's PC haven't install the font style, when i publish my programme by clickonce, and the user use it, the font style is changed. So how can i publish my progamme by clickonce and the user will atuo install the font style before stasrt the programme
7
1718
vikas251074
by: vikas251074 | last post by:
Can I get automatic focus on first text item just after running programme? Because when I run the programme, there is no focus on any text item at the first instant. I have to use mouse to go to first text item. So Can I get automatic focus on first text item just after running programme? Thanks and regards, Vikas
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8360
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8784
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.