수다님이 아까 주신 그 프로세스 관련 질문.

Function FindProcess(Process_Name As String) On Error GoTo WMIError Dim oWMI As Object, oQuery As Object, oProcessObject As Object Set oWMI = GetObject(winmgmts:) On Error GoTo 0 Set oQuery = oWMI.ExecQuery(SELECT * FROM win32_process) For Each oProcessObject In oQuery If oProcessObject.Name = Process_Name Then MsgBox 성공 Exit Function Else

MsgBox 실패
Exit Function
End If NextWMIError:FindProcess abc.exe이런식으로 하는거 아닌가요 ? 근대 계속 실패만 반환되네요 프로세스가 있는대;

댓글 1

  • 파라 2025.10.28

    FindProcess(\abc.exe\), 안되신다면 방금 1:1 챗방에 초대하셨던데 그쪽에서 말씀해주세요.

비주얼베이직 다른 글

목록