ISDBApplication::ApplicationPath: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
m (style)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{MethodDeclaration|SDBApplication|ISDBApplication|Property Get CommonDialog As ISDBCommonDialog}}
{{MethodDeclaration|SDBApplication|ISDBApplication|Property Get ApplicationPath As String}}


===Property description===
===Property description===


Returns SDBCommonDialog object that can be used then to show load/save file dialogs.
Returns the path where MediaMonkey.exe is located, e.g. <tt>C:\Program Files\MediaMonkey\</tt>.


===Example code===                  
=== Related Topics ===  
<source lang="vb">' Create common dialog and ask where to save the file
Dim dlg
Set dlg = SDB.CommonDialog
dlg.DefaultExt='mp3'
dlg.Filter=filter
dlg.Flags=cdlOFNOverwritePrompt + cdlOFNHideReadOnly
dlg.InitDir = iniF.StringValue( "Scripts", iniDirValue)
dlg.ShowSave


if Not dlg.Ok Then
*[[ISDBApplication::MyMusicPath]]
  Exit Sub  ' if cancel was pressed, exit
*[[ISDBDatabase::Path]]
End If
*[[ISDBApplication::CurrentAddonInstallRoot]]
 
*[[ISDBApplication::EqualizerPath]]
' Get the selected filename
*[[ISDBApplication::IconsPath]]
fullfile = dlg.FileName</source>
*[[ISDBApplication::PluginsPath]]
*[[ISDBApplication::ScriptsPath]]
*[[ISDBApplication::SkinsPath]]


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 19:28, 20 April 2013

CoClass SDBApplication, Interface ISDBApplication

Property Get ApplicationPath As String


Property description

Returns the path where MediaMonkey.exe is located, e.g. C:\Program Files\MediaMonkey\.

Related Topics