0

How do you call or use these files you created in your solution explorer

the code that I am using at the moment is:

  System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo()
        { 

            FileName = path + "\\Console\\Hallo\\SWIR\\Dump.exe",//Path is a string that is my current path this is my exe's launch piont
            UseShellExecute = true,
            Verb ="open"
        });

I'm am trying to use them from my solution explorer any help will be appreciated

Kara
  • 6,115
  • 16
  • 50
  • 57
HeadJ.E.M.
  • 101
  • 8
  • 1
    ..\\ gives you the directory that is one folder higher up than your current directory – Sayse Apr 27 '14 at 16:57
  • \\I know i use to work out of the debug folder so the path i use is the current path from where the exe is launched but i want to let it run from the save folder as resources – HeadJ.E.M. Apr 27 '14 at 17:38

1 Answers1

1

If you want to get the location of your current executing assembly, I suggest you use AppDomain.CurrentDomain.BaseDirectory

Best way to get application folder path

Community
  • 1
  • 1
Yuval Itzchakov
  • 146,575
  • 32
  • 257
  • 321