From WikiChip
Editing mirc/commands/load

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|/load Command}}
+
The '''/load command''' can be used to load any type of existing file including: aliases, popups, remote, users, and variables. Using /load on an already loaded file will update its contents while maintaining its order among other files. Note that unlike the {{mIRC|/reload}} command, /load will trigger the on load and on start events.
The '''/load command''' can be used to load any type of existing file of the types: aliases, popups, remote, users, and variables. Using /load on an already loaded file will update its contents while maintaining its order among other files. Note that unlike the {{mIRC|/reload}} command, /load will trigger the ON LOAD and ON START events.
 
  
 
== Synopsis ==
 
== Synopsis ==
  /load -a[N] <filename>
+
  /load -a <filename>
 
  /load -p<scqnm> <filename>
 
  /load -p<scqnm> <filename>
  /load -r<uvs[N]> <filename>
+
  /load -r<uvsN> <filename>
  
 
== Switches ==
 
== Switches ==
Line 17: Line 16:
 
* '''-rvN''' - load variable file
 
* '''-rvN''' - load variable file
 
* '''-ruN''' - load users file
 
* '''-ruN''' - load users file
* '''-N''' - if you specify the N value with -rs or -a, it loads the file into the Nth position in the script list or alias list. In the absence of N, the file is loaded into the last position.
+
* '''-N''' - if you specify the N value with -r, it loads the file into the Nth position in the script list.
  
 
== Parameters ==
 
== Parameters ==
 
* '''<filename>''' - The script file to load
 
* '''<filename>''' - The script file to load
'''Note:''' In the absence of a path, assumes the file is located in $mircdir. Paths not beginning with drive letter or \ are relative to the location of $mircdir.<br />
+
 
'''Note:''' You can have samefilename.mrc and scripts\samefilename.mrc loaded at the same time. Do NOT load any script located in the downloads folder where someone can resume-send a script file on top of the file you have already loaded.
 
'''Note:''' default aliases file is aliases.ini and default popups file is popups.ini containing all 5 types of popups. Default setup has both filenames in scripts\ subfolder from $mircdir.
 
 
== Example ==
 
== Example ==
 
Load three remote script files.
 
Load three remote script files.
Line 31: Line 28:
 
   load -rs baz.mrc
 
   load -rs baz.mrc
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 
Loads script file into the 2nd position of the 'view' menu in Alt+R editor. If it's already loaded, moves the file to that position. If contains ON LOAD or ON START event handler, this triggers the Initialization Warning and/or performs the event handler.
 
<syntaxhighlight lang="mIRC">load -rs2 foobar.mrc</syntaxhighlight>
 
 
Loads aliases file into the 1st position of the 'view' menu in Alt+D editor. If it's already loaded, moves the file to that position.
 
<syntaxhighlight lang="mIRC">load -a1 C:\Foldername\aliases.mrc</syntaxhighlight>
 
  
 
Load a variables and a users file:
 
Load a variables and a users file:
Line 44: Line 35:
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
'''Note:''' If your aliases.ini was saved to a different file extension such as .mrc, it still needs to have the same scripting format used with the original filename. The only difference is that the disk file no longer is saved in the .ini format with lines beginning like n123=. Same applies with saving your users.ini and vars.ini files to other filetypes. However without the file extension being .ini, it's not possible to edit the 5 types of popups sharing the same filename, and -ru and -rv can't share the same filename either.
+
== Compatibility ==
 +
Added: mIRC v3.8
 +
 
 +
Added On: 11/25/95
 +
 
 +
<small>Note: Individual switches were not taken into consideration.</small>
  
== Compatibility ==
 
{{mIRC compatibility|3.8}}
 
 
== See also ==
 
== See also ==
* {{mIRC|$script}}
+
* [[List of commands - mIRC|List of commands]]
 +
* [[List of identifiers - mIRC|List of identifiers]]
 
* {{mIRC|$script}}
 
* {{mIRC|$script}}
 
* {{mIRC|$window}}
 
* {{mIRC|$window}}
Line 59: Line 54:
 
* {{mIRC|/unload}}
 
* {{mIRC|/unload}}
 
* {{mIRC|/window}}
 
* {{mIRC|/window}}
 +
{{mIRC command list}}
 +
 +
[[Category:MIRC commands]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)