ReNamer:Pascal Script

From den4b Wiki
Revision as of 14:49, 16 June 2009 by Den4b (talk | contribs) (Created page with 'This rule uses Delphi/Pascal programming syntax and conventions. * Changes to the '''FileName''' variable will be treated as changes to the New Name of the File. * The '''FilePa...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This rule uses Delphi/Pascal programming syntax and conventions.

  • Changes to the FileName variable will be treated as changes to the New Name of the File.
  • The FilePath constant holds the original path to the file, and provided for the direct file access.
  • Main code must be within the "begin" and "end." keywords.
  • User defined procedures, functions, variables, constants and types are supported, as well as importing of external functions from DLLs.

All manipulations with the FileName variable should be done using Unicode functions, i.e. WideString type should be used instead of an ordinary String type.


Warning: Do not override registered variables, types and functions. Some of the functions able to alter your file system, so use those with caution!