StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sunnyabcd  
#1 Posted : Tuesday, April 14, 2020 4:04:25 AM(UTC)
sunnyabcd

Rank: Member

Reputation:

Groups: Approved
Joined: 4/10/2020(UTC)
Posts: 22

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
Hi all,
i have a question :
how to find a process is running? for eg. : abc.exe.
i need to detect if the abc.exe is running and then do something

liuxilu  
#2 Posted : Tuesday, April 14, 2020 6:02:18 AM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 79
China

Thanks: 1 times
Was thanked: 21 time(s) in 21 post(s)
clr.System.Diagnostics.Process.GetProcessesByName('abc').Length
The number of processes named abc (abc.exe etc.).
thanks 1 user thanked liuxilu for this useful post.
sunnyabcd on 4/15/2020(UTC)
sunnyabcd  
#3 Posted : Wednesday, April 15, 2020 6:46:03 AM(UTC)
sunnyabcd

Rank: Member

Reputation:

Groups: Approved
Joined: 4/10/2020(UTC)
Posts: 22

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: liuxilu# Go to Quoted Post
clr.System.Diagnostics.Process.GetProcessesByName('abc').Length
The number of processes named abc (abc.exe etc.).


a big thank 4 u!
classmate Liuļ¼
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.