From WikiChip
Difference between revisions of "mirc/commands/btrunc"
m (Bot: Adding a template) |
m (Bot: de-linking old mIRC menu) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/btrunc Command}} | ||
The '''/btrunc command''' can be used to truncate a file to a specific number of bytes. If The Number of bytes exceeds the size of the file, the file will be zero-pad to that size. If the file does not exist, a new file will be created. | The '''/btrunc command''' can be used to truncate a file to a specific number of bytes. If The Number of bytes exceeds the size of the file, the file will be zero-pad to that size. If the file does not exist, a new file will be created. | ||
Line 27: | Line 28: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.8}} | |
− | |||
− | |||
− | |||
− | |||
== 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]] | ||
− | * | + | * {{mIRC|$bvar}} |
− | * | + | * {{mIRC|$bfind}} |
− | * | + | * {{mIRC|/bcopy}} |
− | * | + | * {{mIRC|/bread}} |
+ | * {{mIRC|/breplace}} | ||
+ | * {{mIRC|/bset}} | ||
+ | * {{mIRC|/bwrite}} | ||
+ | * {{mIRC|/bunset}} | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|btrunc command - mIRC]] |
Latest revision as of 18:10, 15 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /btrunc command can be used to truncate a file to a specific number of bytes. If The Number of bytes exceeds the size of the file, the file will be zero-pad to that size. If the file does not exist, a new file will be created.
Synopsis[edit]
/btrunc <filename> <bytes>
Switches[edit]
None
Parameters[edit]
- <filename> - Filename of the file to be modified
- <bytes> - Number of bytes to extend or trance the file by/to.
Example[edit]
Alias Example { var %temp = Hello! World ;Write to a variable %temp's content bwrite Example 0 $len(%temp) %temp ;Truncate the file down to 6 bytes btrunc Example 6 ;Read the file into a variable bread Example 0 $file(Example).size &Example ;Print out the variable's content echo -a $bvar(&Example,1,$bvar(&Example,0)).text ;Delete the file remove Example }
Compatibility[edit]
Added: mIRC v5.8
Added on: 05 Sep 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list