|
-
Apr 19th, 2013, 06:23 AM
#1
Thread Starter
Junior Member
[RESOLVED] Process.Start System32 Directory Error
So I'm using a listview and a button to launch the selected program the user chooses. Though I'm having an issue with snipping tool and msconfig but with notepad it launches fine. I noticed that it launches perfectly on a 32-bit system but on my 64-bit system it doesn't...
This works completely fine BUT...
If lstUtilities.SelectedItem = "Notepad" Then
If IO.File.Exists("C:\Windows\System32\notepad.exe") = True Then
Process.Start("C:\Windows\System32\notepad.exe")
Else : MessageBox.Show("This program is not installed in your computer or is installed in a different directory", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End If
This ONE doesn't
If lstUtilities.SelectedItem = "Snipping Tool (Windows 7)" Then
If IO.File.Exists("C:\Windows\System32\SnippingTool.exe") = True Then
Process.Start("C:\Windows\System32\SnippingTool.exe")
Else : MessageBox.Show("This program is not installed in your computer or is installed in a different directory", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End If
So as this one...
If lstUtilities.SelectedItem = "System Configuration (Windows 7)" Then
If IO.File.Exists("C:\Windows\System32\msconfig.exe") = True Then
Process.Start("C:\Windows\System32\msconfig.exe")
Else : MessageBox.Show("This program is not installed in your computer or is installed in a different directory", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|