Documentazione mIRC

$mkfn

$mkfn

Indice

mIRC

Commands & Identifiers

Basics

Events

Matching Tools

Data Storage

Control Structures

GUI Scripting

Sockets

Advanced Scripting

Additional Resources

Security

Other

$mkfn ensures a text string can be a valid filename by replacing characters not allowed in a filename with underscores.

Contents

Synopsis

$mkfn(text)

Parameters

  • text - Text to be made a valid filename by replacing certain characters with underscores

Properties

None

Example

//var %i 33 | var %f | while (%i isnum 33-126) { var %f %f $+ $chr(%i) | inc %i } | echo -a orig: %f | echo -a mkfn: $mkfn(%f)

Note: While this ensures a string is a valid filename, it does not ensure 2 different strings wouldn’t get assigned the same filename, with both having different characters replaced with the same underscore.

Compatibility

Added: mIRC v5.7
Added on: 02 Feb 2000

Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See also