Prev: Fonts, Encoding
Next: Design question
From: Jason soby on 28 Jan 2010 15:17 You sir, helped me out so much! THANK YOU. Did you just look on pinvoke.net or do u have some sort of amazing API knowledge? "Jeff Johnson" wrote: > "Jason soby" <Jasonsoby(a)discussions.microsoft.com> wrote in message > news:F096115E-5A57-4480-82B3-0AEAB78B912B(a)microsoft.com... > > > I'm trying to get the exe name of the program that is launched when i do > > > > ProcessStartInfo info = new ProcessStartInfo(); > > info.Verb = "print"; > > info.FileName = FilePath + FileName + "." + FileType; > > > > Process process = new Process(); > > process.StartInfo = info; > > process.Start(); > > > > Now, process.ProcessName will get it, but i need the info BEFORE i start > > it > > so i'm a little stumped now. Is this possible? > > I don't know if there's anything managed, but there is the FindExecutable() > API function. > > > . >
From: Jeff Johnson on 29 Jan 2010 09:17 "Jason soby" <Jasonsoby(a)discussions.microsoft.com> wrote in message news:5827B0B6-11AC-428E-8940-CD526AA665C5(a)microsoft.com... > You sir, helped me out so much! THANK YOU. Did you just look on > pinvoke.net > or do u have some sort of amazing API knowledge? I have to claim API knowledge on this one, in the sense that I was pretty sure such a function existed and that it would be a shell function, but I did have to look through a list of shell functions on MSDN before I found the exact one.
|
Pages: 1 Prev: Fonts, Encoding Next: Design question |