<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.den4b.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Waexu</id>
	<title>den4b Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.den4b.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Waexu"/>
	<link rel="alternate" type="text/html" href="https://www.den4b.com/wiki/Special:Contributions/Waexu"/>
	<updated>2026-04-03T20:12:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://www.den4b.com/w/index.php?title=ReNamer:Pascal_Script:Break_script_execution&amp;diff=1826</id>
		<title>ReNamer:Pascal Script:Break script execution</title>
		<link rel="alternate" type="text/html" href="https://www.den4b.com/w/index.php?title=ReNamer:Pascal_Script:Break_script_execution&amp;diff=1826"/>
		<updated>2010-06-28T10:53:44Z</updated>

		<summary type="html">&lt;p&gt;Waexu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several ways to break the execution of a script. Using the &#039;&#039;&#039;Exit&#039;&#039;&#039; command breaks the current pass of the script, while using the &#039;&#039;&#039;Break&#039;&#039;&#039; command breaks the execution of a loop. One can also design the script in such a way that will not require usage of either of these commands, by correctly structuring the script with &#039;&#039;&#039;If..Then..Else&#039;&#039;&#039; statements and looping mechanisms. But sometimes you come across cases when it is easier to simply break the execution with one command, instead of redesigning the whole script.&lt;br /&gt;
&lt;br /&gt;
== Exit command ==&lt;br /&gt;
&lt;br /&gt;
Below is a simple demo of how to use &#039;&#039;&#039;Exit&#039;&#039;&#039; command. If &amp;lt;Condition&amp;gt; is met, the script will break its execution, otherwise, script will continue execution.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
  // do some processing ...&lt;br /&gt;
  if &amp;lt;Condition&amp;gt; then Exit;&lt;br /&gt;
  // do more processing ...&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Break command ==&lt;br /&gt;
&lt;br /&gt;
And here is a simple demo for using &#039;&#039;&#039;Break&#039;&#039;&#039; command, which will break the loop when &amp;lt;Condition&amp;gt; is met and will continue executing everything after the loop.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  I: Integer;&lt;br /&gt;
begin&lt;br /&gt;
  for I := 1 to 10 do&lt;br /&gt;
  begin&lt;br /&gt;
    // do some processing ...    &lt;br /&gt;
    if &amp;lt;Condition&amp;gt; then Break;&lt;br /&gt;
  end;&lt;br /&gt;
  // do more processing ...&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stop execution for next files ==&lt;br /&gt;
&lt;br /&gt;
As we have learned the &#039;&#039;&#039;Exit&#039;&#039;&#039; command breaks the current pass of the script, but it doesn&#039;t stop the script from being executed for the next file in the files table and so on. We encounter here a similar problem as with [[ReNamer:Pascal Script:Initialization of variables|initialization of variables]]. Solution is also similar. We will use a variable to keep track if the main code of the script should be executed or not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  TimeToExit: Boolean;&lt;br /&gt;
begin&lt;br /&gt;
  if not TimeToExit then&lt;br /&gt;
  begin&lt;br /&gt;
    // that&#039;s the block for the main script code&lt;br /&gt;
    if DialogYesNo(&#039;Would you like to stop script execution?&#039;) then&lt;br /&gt;
      TimeToExit := True;&lt;br /&gt;
  end;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the script is still executed for every file, but it&#039;s main code is executed only until &#039;&#039;&#039;TimeToExit&#039;&#039;&#039; becomes TRUE. After that script keeps starting just to see that it has nothing to do.&lt;br /&gt;
&lt;br /&gt;
[http://www.applicationessay.net/ admission essay]&lt;/div&gt;</summary>
		<author><name>Waexu</name></author>
	</entry>
	<entry>
		<id>https://www.den4b.com/w/index.php?title=ReNamer:Rules:Serialize&amp;diff=1825</id>
		<title>ReNamer:Rules:Serialize</title>
		<link rel="alternate" type="text/html" href="https://www.den4b.com/w/index.php?title=ReNamer:Rules:Serialize&amp;diff=1825"/>
		<updated>2010-06-28T10:38:00Z</updated>

		<summary type="html">&lt;p&gt;Waexu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Case|next=ReNamer:Rules:CleanUp}}&lt;br /&gt;
&lt;br /&gt;
== Serialize Rule ==&lt;br /&gt;
&amp;lt;center&amp;gt;[[Image:SerializeRule.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This rule works on a set of files, and inserts incremental numeric series or random sequences of digits in the names of those filenames.&lt;br /&gt;
&lt;br /&gt;
When the &#039;&#039;incremental&#039;&#039; option is chosen, the files listed in the pane are numbered in ascending order. Thus, the position of the file in the &#039;&#039;&#039;Files&#039;&#039;&#039; pane becomes important. Check the order of the files in the list before applying this rule.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
# You have a bunch of log files, and you want to make them look like &amp;quot;log0001&amp;quot;, &amp;quot;log0002&amp;quot;, &amp;quot;log0003&amp;quot;, etc.&lt;br /&gt;
# You want to force specific sorting for files: &amp;quot;01 - Song XYZ&amp;quot;, &amp;quot;02 - Song ABC&amp;quot;, &amp;quot;03 - Song YYY&amp;quot;, etc.&lt;br /&gt;
&lt;br /&gt;
The parameters are as follows:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Details&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Incremental&lt;br /&gt;
| Inserts serialized numbers in the names of the files placed in the Files pane of ReNamer. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| Index start&lt;br /&gt;
| Starting number. If the folder already has some files with serialized numbers, start with the next number.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Step&lt;br /&gt;
| Usually 1, but you may like to enter a higher number here if files with intermediate numbers are expected later. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Reset if folder changes&lt;br /&gt;
| Since ReNamer can work on files collected from multiple folders, this control allows you to reset the counter for each of those folders. The effect is as if you are repeating the same commend for each of the folders separately.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Random&lt;br /&gt;
| Inserts a random number in the file name.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| Length&lt;br /&gt;
| Specify how many digits your random number should have. &lt;br /&gt;
&lt;br /&gt;
* ReNamer will create random numbers with specified length (number of digits). So a length of 4 means the random digits will be from 0000 to 9999 (inclusive).&lt;br /&gt;
&lt;br /&gt;
* Note that random numbers are padded with leading zeroes by default&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Unique if possible&lt;br /&gt;
| Normally, random numbers can repeat themselves. If this option is selected, ReNamer will try to use unique numbers. &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Pad with zeros to reach length&lt;br /&gt;
| ReNamer will pad the remaining places with leading zeros. For example 457 becomes 000457 if it is padded to reach 6 digits, and 0457 if padded to 4 digits.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Insert where&lt;br /&gt;
| Specify where to insert the number. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| Prefix&lt;br /&gt;
| Before the original filename&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Suffix&lt;br /&gt;
| After the original filename&lt;br /&gt;
&lt;br /&gt;
* If the &#039;&#039;&#039;skip extension&#039;&#039;&#039; option is selected, the specified text will be inserted &#039;&#039;before&#039;&#039; the extension.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| Position&lt;br /&gt;
| Insert the number at the specified position.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
Note that if the &amp;quot;&#039;&#039;pad with zeros&#039;&#039;&amp;quot; option (above) is selected, the &#039;&#039;padded &#039;&#039; number is inserted.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[http://www.essaymill.com essay ideas]&lt;/div&gt;</summary>
		<author><name>Waexu</name></author>
	</entry>
	<entry>
		<id>https://www.den4b.com/w/index.php?title=ReNamer:Introduction&amp;diff=1824</id>
		<title>ReNamer:Introduction</title>
		<link rel="alternate" type="text/html" href="https://www.den4b.com/w/index.php?title=ReNamer:Introduction&amp;diff=1824"/>
		<updated>2010-06-28T10:15:59Z</updated>

		<summary type="html">&lt;p&gt;Waexu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Go|up=ReNamer}}&lt;br /&gt;
&lt;br /&gt;
[[Image:ReNamer Main Outline.png]] &lt;br /&gt;
&lt;br /&gt;
[[ReNamer]] is a very powerful and flexible file renaming tool with the following features: &lt;br /&gt;
&lt;br /&gt;
*The &#039;&#039;workflow&#039;&#039; toolbar makes renaming easy. &lt;br /&gt;
*ReNamer can rename files belonging to different folders (or even different computers) at a time.&amp;lt;br&amp;gt;You can also [[ReNamer:Filter settings|filter the contents]] of the folders before renaming.&lt;br /&gt;
*ReNamer offers extensive set of [[ReNamer:Using the Rules|rules]] for renaming. Each rule has controllable parameters.&lt;br /&gt;
*ReNamer can stack multiple rules in any sequence and apply in that order. &lt;br /&gt;
*ReNamer provides full [[ReNamer:Previewing files|preview]] (the affected file names can be highlighted). &lt;br /&gt;
*ReNamer allows you to try out the stack of rules on user-defined text &amp;lt;br&amp;gt;(this allows safe experimentation, without risking real files). &lt;br /&gt;
*ReNamer can automatically handle name-conflicts arising from the renaming. &lt;br /&gt;
*You can save the stack of rules as a &amp;quot;[[ReNamer:Using presets|preset]]&amp;quot; and re-use it later &#039;&#039;with a keyboard shortcut&#039;&#039;. &lt;br /&gt;
*ReNamer can [[ReNamer:Renaming folders|rename folders]]. &lt;br /&gt;
*ReNamer can [[ReNamer:Renaming to another folder|move files to other folders]].&lt;br /&gt;
*ReNamer can rename Windows network (neighbourhood) files also. &lt;br /&gt;
*ReNamer can use [[ReNamer:Rules:RegEx|RegEx]] ([[ReNamer:Regular Expressions|Regular Expressions]]) for the renaming. &lt;br /&gt;
*ReNamer supports Unicode filenames (e.g. Asian scripts, Cyrillic, French, Spanish, Arabic, Hebrew, etc). &lt;br /&gt;
*ReNamer allows scripting ([[ReNamer:Pascal Script|Pascal Script]]) to create complex renaming logic.&amp;lt;br&amp;gt;(many scripts are available on the [http://www.den4b.com/forum/ Forum]). &lt;br /&gt;
*ReNamer can extract a large variety of meta tags from files and use them for the renaming.&amp;lt;br&amp;gt;(e.g. [http://www.id3.org/ID3v1 ID3v1], [http://www.id3.org/ ID3v2], [http://exif.org EXIF], [http://en.wikipedia.org/wiki/Object_Linking_and_Embedding OLE], [http://msdn.microsoft.com/en-us/library/ms779636.aspx AVI], [http://en.wikipedia.org/wiki/MD5 MD5], [http://en.wikipedia.org/wiki/Sha1 SHA1], [http://en.wikipedia.org/wiki/Crc32 CRC32], etc) &lt;br /&gt;
*ReNamer can export/import the renaming-related information. &lt;br /&gt;
*ReNamer can take automatic actions based on outcome of renaming operation&amp;lt;br&amp;gt;(e.g. clear off all successfully renamed files from the pane, but retain the problematic files) &lt;br /&gt;
*ReNamer can be run in [[ReNamer:Command Line|command line mode]], with lots of parameters. &amp;lt;br&amp;gt;This allows you to select your files in explorer (or any other application) and do &#039;&#039;one-touch renaming&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[http://www.writers.ph freelance writer]&lt;/div&gt;</summary>
		<author><name>Waexu</name></author>
	</entry>
</feed>