Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GetFileNameColor ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Returns color associated with provided file name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strPathName** ==== Return Value ==== * [[scripting:api:data-type:OLE_COLOR|OLE_COLOR]] **pColor** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pColor = Application.GetFileNameColor(strPathName); </code>==== Visual Basic Script ==== <code vb> pColor = Application.GetFileNameColor strPathName </code>==== C++ ==== <code cpp> OLE_COLOR Color; HRESULT hr = Application.GetFileNameColor(strPathName, &Color); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~