Download

Facebooktwitterredditpinterestlinkedinmail

Topics: beginners tutorial PerlWizard jar gui free tool rapid deployment simple forms robust coding system programming freemarker windows shortcuts symlink junction

RTBaileyPhd.com free Perl scripts and tools

With the exception of MkLink.pl for Windows, these tools are all useful for both Windows and Unix-like systems.  You do not need other files to run the PerlWizard jar file, but you do need to download the supporting files gnrl_utils.pl, file_mgr.pl, and PerlWizardSubs.pl to run the others.  If you have problems downloading a file, please report the issue in Feedback.

File

Description

PerlWizard.jar

Executable Java jar file containing everything needed to run PerlWizard from a single jar file.  This jar file has gnrl_utils.pl, file_mgr.pl, and PerlWizardSubs.pl embedded in it.

Note: If your browser (e.g., IE) autonomously renames the file as PerlWizard.zip, you will need to rename it as PerlWizard.jar.  Do not unzip it.  You should be able to run it with a double click after the renaming.

AllTools.zip

Collection of all the tools listed below.

gnrl_utils.pl

One of 3 auxiliary files needed to run any script generated by PerlWizard.  This is also included in PerlWizard.jar.  In addition to supporting PerlWizard scripts, gnrl_utils has numerous functions that you might find useful.

file_mgr.pl

One of 3 auxiliary files needed to run any script generated by PerlWizard.  This is also included in PerlWizard.jar.   In addition to supporting PerlWizard scripts, gnrl_utils has numerous functions that you might find useful.

PerlWizardSubs.pl

One of 3 auxiliary files needed to run any script generated by PerlWizard.  This is also included in PerlWizard.jar.  This file is not otherwise generally useful.

MkLink.pl

Freeware to quickly create Microsoft Windows shortcuts, symbolic links, hard links, and junctions in various useful locations.  Pin any file to the Start Menu or Taskbar.  Run or install any program or script or open any file with SYSTEM authority.  See MkLink.  A copy of MkLink.pl is included in the jar file.  Type   MkLink.pl --help  for more instructions.

ShortcutLauncher.pl

You can use this with MkLink.pl if you are having problems with Windows shortcuts that you make.  To use, make ShortcutLauncher.pl the target of your shortcut and when asked to supply the options for your shortcut, put in the name of the program you actually want to start, followed by any args it needs.  Then if your program crashes or fails to compile, you will be able to see the error messages in the command window.  Otherwise, the command window will just disappear on you in 50 msec and you will not know what happened.

RenameVar.pl

RenameVar.pl replaces one word with another in a text file such that column layout is preserved even when the two words have different lengths.  This is useful, for example, for replacing Placeholder variables in PerlWizard scripts with real variables.  You could do this manually, but then the formatting would be messed up.  Moreover, RenameVar.pl will show you the changes it has made and give you the opportunity to either accept or reject the changes.  Type   RenameVar.pl --help  for more instructions.

GeneralPurposeScript.pl

If you do not want to use the PerlWizard.jar file, you can download this file (along with gnrl_utils.pl, file_mgr.pl, PerlWizardSubs.pl, and RenameVar.pl).  Then when you want to create a new script, say MyFileMunger.pl with one parameter, FileSpecs, do this:

1.   Copy GeneralPurposeScript.pl to MyFileMunger.pl

2.   RenameVar.pl -old=PlaceholderS1 -new=FileSpecs -file=MyFileMunger.pl

3.   RenameVar.pl will show you the changes it made, and you can then accept or reject them, but I assume you will accept them.

4.   Then edit MyFileMunger.pl and search for each occurrence of FileSpecs.  Fill in the blanks as needed.

5.   Go to the bottom of MyFileMunger.pl and add the code to process the files named in $FileSpecs.

This is not as convenient as using the PerlWizard jar, but is a lot easier than starting from scratch.  Type  GeneralPurposeScript.pl --help  for more instructions.

PerlWizardTemplate.pl

If you want to override the template that is built into the jar file, then download this copy of it, make whatever changes you need as save as , say, MyCustomizedWizardTemplate.pl, and then invoke PerlWizard as follows:

      java -jar PerlWizard.jar MyCustomizedWizardTemplate.pl

Note that just typing this:

      PerlWizard.jar MyCustomizedWizardTemplate.pl

Will not work.

PerlWizard will always reload your template on every script generation, so you can modify your customized template while PerlWizard is running.  Just click the Regenerate button and any newly-saved changes to your template will be reloaded before the script generation starts.

fix_up.pl

The files here may have mixed end-of-line terminators,  Some LF and some CRLF.  Usually this will not be a problem, but if it is, fix_up.pl can convert a list of files to either all LF or all CRLF.  You will need this if you want to use Windows notepad.exe (but if that is the case, why not get Notepad++ or Portable Notepad++?)

PreprocessorWizard.zip

PreprocessorWizard.pl plus the library files needed to run it.

PreprocessorWizard.pl

PreprocessorWizard is a WYSIWYG conditional compilation preprocessor for any left-delimited language, including Java.  It can be used as a standalone application, or it easily integrates with almost any IDE.  It works well with NetBeans.

WizFind.pm

WizFind.pm is needed by PreprocessorWizard.  WizFind.pm can also be used with any PerlWizard script.  It is a wrapper around File::find.  It is much simpler to use than File::find and it knows enough not to follow Windows JUNCTIION and SYMLINKD directories, which File::find and almost no other software knows not to do.

StopChromeAskingToBeDefault.reg

Use this to stop Chrome from asking to be defined as your default browser.

ClearPageFileAtShutdown.reg

Use this to cause Windows to write zeroes into your pagefile.sys and swapfile.sys upon shutdown. 

This page was last modified Wed Oct 07 16:25:28 2020 

Download was last modified: by