Difference between revisions of "$scriptdir"
From Scriptwiki
m (linking to self is bad.) |
|||
Line 22: | Line 22: | ||
== See Also == | == See Also == | ||
* [[$script]] | * [[$script]] | ||
− | |||
[[Category:File and Directory Identifiers]] | [[Category:File and Directory Identifiers]] |
Latest revision as of 21:09, 6 April 2008
Returns the directory of the currently executing remote script.
$scriptdir
It is generally good practice to use this identifier to locate files associated with the current script.
Example
on *:load: { ;Check we have atleast version 6.2 if ($version < 6.2) { echo -ag You need atleast mIRC v6.2 to use this script. .unload -rs $script } ;Make sure we have the images we need. if (!$exists($scriptdir $+ MyImage.jpg)) { echo -ag MyImage wasn't found in $scriptdir please place this image into the directory before loading this remote. .unload -rs $script } ;Everythings ok, display image. background -ef $scriptdir $+ MyImage.jpg }