Difference between revisions of "ReNamer:Pascal Script"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
== In a nutshell == | == In a nutshell == | ||
− | #[[ReNamer:Pascal Script:FileName| | + | #[[ReNamer:Pascal Script:FileName|How to rename a file (]][[ReNamer:Pascal Script:FileName|using the '''FileName''' variable)]] |
− | #[[ReNamer:Pascal Script:FileName Utilities| | + | #[[ReNamer:Pascal Script:FileName Utilities|How to skip extention (]][[ReNamer:Pascal Script:FileName Utilities|bBasic FileName utilities) ]] |
− | #[[ReNamer:Pascal Script:WideUpperCase| | + | #[[ReNamer:Pascal Script:WideUpperCase|How to uppercase the filename (]][[ReNamer:Pascal Script:WideUpperCase|the '''WideUpperCase''' function) ]] |
− | #[[ReNamer:Pascal Script:Unicode String Handling Routines| | + | #[[ReNamer:Pascal Script:Unicode String Handling Routines|How to operate on words (]][[ReNamer:Pascal Script:Unicode String Handling Routines|Unicode string-handling routines) ]] |
− | #[[ReNamer:Pascal Script:Basic Conversion Routines| | + | #[[ReNamer:Pascal Script:Basic Conversion Routines|How to serialize files (]][[ReNamer:Pascal Script:Basic Conversion Routines|Basic conversion routines) ]] |
#[[ReNamer:Pascal Script:Initialization of variables|Initialization of variables]] | #[[ReNamer:Pascal Script:Initialization of variables|Initialization of variables]] | ||
− | #[[ReNamer:Pascal Script:Dialogs| | + | #[[ReNamer:Pascal Script:Dialogs|How to create interactive dialogs (let the user decide]]) |
− | #[[ReNamer:Pascal Script:FilePath| | + | #[[ReNamer:Pascal Script:FilePath|How to work with folders and paths (]][[ReNamer:Pascal Script:FilePath|FilePath) ]] |
#[[ReNamer:Pascal Script:Break script execution|How to break the script execution]] | #[[ReNamer:Pascal Script:Break script execution|How to break the script execution]] |
Revision as of 09:43, 11 July 2009
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!
Reference
In a nutshell
- How to rename a file (using the FileName variable)
- How to skip extention (bBasic FileName utilities)
- How to uppercase the filename (the WideUpperCase function)
- How to operate on words (Unicode string-handling routines)
- How to serialize files (Basic conversion routines)
- Initialization of variables
- How to create interactive dialogs (let the user decide)
- How to work with folders and paths (FilePath)
- How to break the script execution