OS_ProcessGetFullPath

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > OS (Operating System) > OS_Process >

OS_ProcessGetFullPath

 

Description

 

Returns full process path, including process name.

 

Syntax

 

sPath = OS_ProcessGetFullPath(pID)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

pID

Number

No

Process ID

 

Remarks

 

In case the function fails to find the process, it returns empty string.

 

Restrictions

 

Programmer must supply valid pID, otherwise empty string is returned.

pID can be determined using OS_ProcessGetID(sProcessName) function

 

See also

 

OS_ProcessGetID

 

Examples

 

Uses "OS"

 

DWord pID = OS_ProcessGetId("thinBasic.exe")

String sPath = OS_ProcessGetFullPath(pID)

 

MsgBox 0, sPath