Portable TextPad needs relative paths to tools.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
spintronic34
Posts: 7
Joined: Fri May 20, 2016 9:37 pm
Contact:

Portable TextPad needs relative paths to tools.

Post by spintronic34 »

Hi all,
I'm using a portable instance of Textpad 8.4.1 64-bit on my flash drive. I also have a very portable instance of Strawberry Perl on this flash drive. I have tools in TextPad that run my Perl scripts and capture output. The problem is that the drive changes on my flash drive and I have to update the path to Perl. Is there a variable within TextPad that would allow me to update this in my configuration automatically? How would I turn

F:\path-to-perl\perl.exe

into

H:\path-to-perl\perl.exe

the next time I plug in TextPad to a new machine?

Thanks in advance!
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

As an alternative, you might assign a permanent drive letter to the drive:
https://www.windowscentral.com/how-assi ... windows-10.
spintronic34
Posts: 7
Joined: Fri May 20, 2016 9:37 pm
Contact:

Post by spintronic34 »

ben_josephs wrote:As an alternative, you might assign a permanent drive letter to the drive:
https://www.windowscentral.com/how-assi ... windows-10.
Thanks, I'll try doing that for all of my machines.
TextPad lover since 2001
User avatar
AmigoJack
Posts: 532
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

ben_josephs wrote:assign a permanent drive letter
The main purpose of "portable" means to use it on any system, not always the same. That's what makes relative paths powerful.

Using any USB storage device means also using it for unknown systems, and there maybe only once. And in such a case to use i.e. TextPad right away without any need to install it.

(Strictly speaking TextPad can be used without installation, but it would always insist on being started for the first time. I understand that the shell extension for the Explorer's context menu must be installed, but everything else is just for the user's comfort of having shortcut icons to click on and appearing in Windows' control panel to "uninstall" it.)
spintronic34
Posts: 7
Joined: Fri May 20, 2016 9:37 pm
Contact:

Post by spintronic34 »

So is there a way to detect the drive letter that TextPad is working from so I can run a USB Drive copy of Perl on a new computer?
AmigoJack wrote:
ben_josephs wrote:assign a permanent drive letter
The main purpose of "portable" means to use it on any system, not always the same. That's what makes relative paths powerful.

Using any USB storage device means also using it for unknown systems, and there maybe only once. And in such a case to use i.e. TextPad right away without any need to install it.

(Strictly speaking TextPad can be used without installation, but it would always insist on being started for the first time. I understand that the shell extension for the Explorer's context menu must be installed, but everything else is just for the user's comfort of having shortcut icons to click on and appearing in Windows' control panel to "uninstall" it.)
TextPad lover since 2001
Post Reply