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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Kim,

I'm having a little difficulty figuring out exactly what it is you are
trying to do. Can you elaborate a little more?
 
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
 
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.
 
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 said:
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]
- (e-mail address removed)

Kim said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top