Sunday, December 4, 2016

How to Run Your Perl and Python Scripts From a Portable USB Thumb Drive On Multiple Computers You Are Repairing Without Having to Install the Full Interpreter on the Host

I have a lot of Perl and Python scripts I wrote to speed up the computer repair tasks I've had to perform in the past, such as: http://crazesweb.blogspot.com/2016/07/a-perl-script-to-search-hard-drive-for.html and http://crazesweb.blogspot.com/2016/07/a-perl-script-to-search-hard-drive-for_2.html

This guide will show you how to put these types of scripts on a flash drive and use a portable interpreter so that you don't have to install perl or python on every machine that you work on.

First you will need to download the portable versions of your interpreters, for Perl, download Strawberry Perl portable x86. For python, download the portable python x86. Now copy these executables to your flash drive along with your scripts for repairing. Next download Pstart, which is like a start menu for your portable thumb drive programs. Edit your pstart menu to execute your script using the appropriate interpreter for the script you choose. An alternative way is to create a batch script for each script that uses the portable interpreter to execute the given script.

No comments:

Post a Comment