From WikiChip
Difference between revisions of "mirc/commands/remove"
< mirc‎ | commands

m (Bot: Adding a template)
(Add'l syntax and examples)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The '''/remove command''' can be used to delete a file permanently or sends it to the recycle bin. The filename cannot be a wildcard pattern. This command prints "* Removed '<filename>'", to remove that message prefix the command with a dot (i.e. use /.remove).
+
{{mirc title|/remove Command}}
 +
The '''/remove''' command can be used to delete a file permanently or sends it to the recycle bin. The filename cannot be a wildcard pattern. This command prints "* Removed '<filename>'", to avoid that message, use the dot prefix (i.e. use /.remove).
  
 
== Synopsis ==
 
== Synopsis ==
Line 8: Line 9:
  
 
== Parameters ==
 
== Parameters ==
* '''<filename>''' - the file to remove
+
* '''<filename>''' - the file to remove. Your filename can be case-insensitive, but cannot include ?* wildcards. In the absence of a full path, filenames are assumed to be relative to $mircdir. If the <filename> contains any spaces, it must be enclosed in quotes.
 +
 
 +
Note: If filename contains 2+ consecutive spaces, this command searches for a filename without the duplicate space, and deletes that file instead, if it exists.
  
 
== Example ==
 
== Example ==
<syntaxhighlight lang="mIRC">; create and write to a file
+
<syntaxhighlight lang="mIRC">create and write to a file:
 
/write foo.txt Hello There
 
/write foo.txt Hello There
 
+
remove the file:
; remove the file
+
/remove foo.txt
/remove foo.txt</syntaxhighlight>
+
delete a filename containing space from downloads subfolder:
 +
//.remove $qt(downloads\test filename.txt)
 +
</syntaxhighlight>
 +
Note: The dot prefix hides both the success message and the "no such file" error.
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v4.0
+
{{mIRC compatibility|4.0}}
 
 
Added On: 20/03/96
 
 
 
<small>Note: Individual switches were not taken into consideration.</small>
 
  
 
== See also ==
 
== See also ==
 
* [[List of commands - mIRC|List of commands]]
 
* [[List of commands - mIRC|List of commands]]
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* [[List of identifiers - mIRC|List of identifiers]]
* [[$mircdir identifier - mIRC|$mircdir]]
+
* {{mIRC|$mircdir}}
* [[$scriptdir identifier - mIRC|$scriptdir]]
+
* {{mIRC|$scriptdir}}
* [[$read identifier - mIRC|$read]]
+
* {{mIRC|$read}}
* [[$findfile identifier - mIRC|$findfile]]
+
* {{mIRC|$findfile}}
* [[$finddir identifier - mIRC|$finddir]]
+
* {{mIRC|$finddir}}
* [[/copy command - mIRC|/copy]]
+
* {{mIRC|/copy}}
* [[/mkdir command - mIRC|/mkdir]]
+
* {{mIRC|/mkdir}}
* [[/rename command - mIRC|/rename]]
+
* {{mIRC|/rename}}
* [[/rmdir command - mIRC|/rmdir]]
+
* {{mIRC|/rmdir}}
* [[/run command - mIRC|/run]]
+
* {{mIRC|/run}}
* [[/write command - mIRC|/write]]
+
* {{mIRC|/write}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|remove command - mIRC]]

Latest revision as of 05:00, 10 January 2018

The /remove command can be used to delete a file permanently or sends it to the recycle bin. The filename cannot be a wildcard pattern. This command prints "* Removed '<filename>'", to avoid that message, use the dot prefix (i.e. use /.remove).

Synopsis[edit]

/remove -b <filename>

Switches[edit]

  • -b - Send the file to the recycle bin

Parameters[edit]

  • <filename> - the file to remove. Your filename can be case-insensitive, but cannot include ?* wildcards. In the absence of a full path, filenames are assumed to be relative to $mircdir. If the <filename> contains any spaces, it must be enclosed in quotes.

Note: If filename contains 2+ consecutive spaces, this command searches for a filename without the duplicate space, and deletes that file instead, if it exists.

Example[edit]

create and write to a file:
/write foo.txt Hello There
remove the file:
/remove foo.txt
delete a filename containing space from downloads subfolder:
//.remove $qt(downloads\test filename.txt)

Note: The dot prefix hides both the success message and the "no such file" error.

Compatibility[edit]

Added: mIRC v4.0
Added on: 20 Mar 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]

[Expand]
v · d · e mIRC commands list