By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,883 Members | 1,400 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,883 IT Pros & Developers. It's quick & easy.

Process.GetProcessesByName method not working for me on one PC

P: 1
When I am trying to Start process by Process.GetProcessesByName(MyProcess) then its not starting the process.
MyProcess is locating in the same folder, I have been occurring this issue only on single PC on other PC it is working fine. what would be the reason?
Mar 27 '19 #1
Share this Question
Share on Google+
2 Replies

P: 1
I was also got the same issue. please suggest someone.
Mar 27 '19 #2

P: 112
Process.GetProcessesByName method does not start a process.

Expand|Select|Wrap|Line Numbers
  1. 'Start an external application
  2. Dim p As System.Diagnostics.Process = System.Diagnostics.Process.Start("notepad.exe")
  3. :
  4. :
  5. 'Get all processes with specified name
  6. Dim ps As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("notepad")
  7. Dim p As System.Diagnostics.Process
  8. For Each p In ps
  9. msgbox(p.Id.ToString & " " & p.MainWindowTitle.ToString)
  10. Next p
Dec 17 '19 #3

Post your reply

Sign in to post your reply or Sign up for a free account.