Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. On Windows Vista, Process.Start() generates Win32Exception.

On Windows Vista, Process.Start() generates Win32Exception.

Scheduled Pinned Locked Moved Visual Basic
question
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Atara
    wrote on last edited by
    #1

    On Windows Vista, Process.Start() generates Win32Exception. Sample Code: Dim selfProc As String = System.Windows.Forms.Application.ExecutablePath System.Diagnostics.Process.Start(Chr(34) & selfProc & Chr(34)) The generated Exception: System.ComponentModel.Win32Exception: The parameter is incorrect at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName) at ...MyProcedure(...) What is wrong with my code? Thanks

    Atara

    A 1 Reply Last reply
    0
    • A Atara

      On Windows Vista, Process.Start() generates Win32Exception. Sample Code: Dim selfProc As String = System.Windows.Forms.Application.ExecutablePath System.Diagnostics.Process.Start(Chr(34) & selfProc & Chr(34)) The generated Exception: System.ComponentModel.Win32Exception: The parameter is incorrect at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName) at ...MyProcedure(...) What is wrong with my code? Thanks

      Atara

      A Offline
      A Offline
      Atara
      wrote on last edited by
      #2

      thread continue in [url:http://www.developersdex.com/vb/message.asp?r=5632660&p=1121[^]]

      Atara

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups