[C#] ShellExecute

Pagina: 1
Acties:

  • Nibble
  • Registratie: Juli 2001
  • Laatst online: 00:30
Ik wil een programma opstaren vanuit mijn app.
Ik weet ook dat dit gaat met shellexecute, de aanroep is verder ook goed,
alleen klaagt C# :
code:
1
K:\Ontwerpen\Loader\Loader\Form1.cs(194): The name 'ShellExecute' does not exist in the class or namespace 'Loader.frmMain'


En ik heb geen idee hoe ik dit moet oplossen. Het lijkt mij iets van een library includen, ik heb al bij references gekeken, maar ik zie geen shellapi objecten in de .NET of COM bladen staan.

Need some help here :)

T is for TANK, and T is for TERROR ... and K is the K for KILLING in error.


  • mulder
  • Registratie: Augustus 2001
  • Laatst online: 22:17

mulder

ik spuug op het trottoir

oogjes open, snaveltjes dicht


  • whoami
  • Registratie: December 2000
  • Laatst online: 19:34
Ben je wel zeker dat de method 'ShellExecute' in C# bestaat?
Ik vind er alleszins niets over in de .NET framework SDK help....

https://fgheysels.github.io/


  • Nibble
  • Registratie: Juli 2001
  • Laatst online: 00:30
Gevonden!
Voor alle toekomstige searchers, het is:

"System.Diagnostics.Process.Start()"

'Example that opens the C:\Temp folder in Explorer
Imports System.Diagnostics
Process.Start("explorer.exe", "C:\Temp")

T is for TANK, and T is for TERROR ... and K is the K for KILLING in error.