473,509 Members | 3,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the path then start a application by dobble cilch on pr

Hey All

I know how to to get the service ( by RegistyKey and Registy) so I can start
the Application by dobble ckich on the file, but how can I read (and save)
the path to the file so I can save the result in same folder.

Best Regard

Kim Stroeh
Oct 30 '07 #1
4 1431
Kim,

I'm having a little difficulty figuring out exactly what it is you are
trying to do. Can you elaborate a little more?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Kim" <Ki*@discussions.microsoft.comwrote in message
news:3A**********************************@microsof t.com...
Hey All

I know how to to get the service ( by RegistyKey and Registy) so I can
start
the Application by dobble ckich on the file, but how can I read (and save)
the path to the file so I can save the result in same folder.

Best Regard

Kim Stroeh


Oct 30 '07 #2
On Oct 30, 11:24 pm, Kim <K...@discussions.microsoft.comwrote:
Hey All

I know how to to get the service ( by RegistyKey and Registy) so I can start
the Application by dobble ckich on the file, but how can I read (and save)
the path to the file so I can save the result in same folder.

Best Regard

Kim Stroeh
use Application.StartupPath

cheers
sunny

Oct 31 '07 #3
Hey Sunny

By "Application.StartupPath" I got the path to my *.exe appliction file. I
want to get the path to the data file as I by dobble Clicking on the data
file start my appliction up. I subscribe this service by use RegistyKey and
registy class,. I know how to get the service but not XP open my application.
In Registry editor I have seen the extionsion folder for my data file type
together with all type og extesions. So how to get the Path for the data file?

Regards

Kim S.

"sunny" wrote:
On Oct 30, 11:24 pm, Kim <K...@discussions.microsoft.comwrote:
Hey All

I know how to to get the service ( by RegistyKey and Registy) so I can start
the Application by dobble ckich on the file, but how can I read (and save)
the path to the file so I can save the result in same folder.

Best Regard

Kim Stroeh

use Application.StartupPath

cheers
sunny

Oct 31 '07 #4
Hey Nicholas Paldino

See my anwser to Sunny. He told to use Applicatio.StartUpPath; property in
Appliction But its get the path to the application exe file not the path to
my data file that start my Appliction.

Regard

Kim s.

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

I'm having a little difficulty figuring out exactly what it is you are
trying to do. Can you elaborate a little more?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Kim" <Ki*@discussions.microsoft.comwrote in message
news:3A**********************************@microsof t.com...
Hey All

I know how to to get the service ( by RegistyKey and Registy) so I can
start
the Application by dobble ckich on the file, but how can I read (and save)
the path to the file so I can save the result in same folder.

Best Regard

Kim Stroeh


Oct 31 '07 #5

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

Similar topics

1
8573
by: Pierre Rouleau | last post by:
I can't remember where/how sys.path is set (aside from the automatically loaded site.py) and i get a strange entry in it. Can anyone remind me where/how to control sys.path on a Win32 machine (i'm...
9
3586
by: Bengt dePaulis | last post by:
I have a local directory that I want to include in my sys.path How to save it permanently? Regards /Bengt
15
11516
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
6
6405
by: Garfield | last post by:
We have written a small function to append a couple of paths to the path environmental variable. The code is: string PathValue = ""; string sAdd = ""; sAdd = ";" + <path1> + "Bin;" +...
4
1870
by: John Smith | last post by:
Hello, I'm not sure if these are the appropriate forums for my question since it is closer to about Visual Studio 2005 than it is about .NET framework. So please pardon me and direct me to a...
1
5878
by: stuart.medlin | last post by:
I have an Access 2003 application that I recently converted from Access 97. I have a routine in which I use to export the data that the users have keyed into a text file. This text file resides...
0
4210
by: md | last post by:
Hi all, I have a simple VB.net application, which I create and publish using VB 2005 Express. When I install it on the target computer, this application needs to be run both from the Start...
12
3686
by: Anil Gupte | last post by:
I wrote my Windows Service first as a regular Windows Exe because it is easier to debug. In that I used AppDir = Application.ExecutablePath.Substring(0,...
0
2842
by: Andrzej Lipski | last post by:
Hello I am developing a Windows Ce 5.0 mobile application. I followed the example shown at : Creating Self-Updating Applications With the .NET Compact Framework...
0
7234
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,...
0
7136
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...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5652
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,...
0
4730
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...
0
3216
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...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.