From WikiChip
Difference between revisions of "mirc/commands/btrunc"
(Created page with "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 ...") |
m (Bot: Adding a template) |
||
Line 40: | Line 40: | ||
* [[/breplace command - mIRC|/breplace]] | * [[/breplace command - mIRC|/breplace]] | ||
* [[/bset command - mIRC|/bset]] | * [[/bset command - mIRC|/bset]] | ||
+ | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:MIRC commands]] |
Revision as of 20:21, 3 July 2014
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
/btrunc <filename> <bytes>
Switches
None
Parameters
- <filename> - Filename of the file to be modified
- <bytes> - Number of bytes to extend or trance the file by/to.
Example
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
Added: mIRC v5.8
Added On: 05/09/2000
Note: Individual switches were not taken into consideration.
See also
mIRC commands list