Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3827

Plugins and addons: devel.+support (English) • Re: PowerShell: adding TotalCommander license to the registry

$
0
0
The same on .vbs...
A curious user is asking a question:
[Question]
- What is this .vbs script, how does it work, and what does it do?
Another user is answering:
[Answer]
- This is a Windows VBScript script.
- The given .vbs script has its modus operandi that implies it is provided with the input parameter, namely the Total Commander's license .key file.
-- One of the ways to do so (to give to the .vbs the input data it needs):
--- a user locates the .key file and drag-and-drops (or copy-pastes) the located .key file onto the .vbs file.
- The .vbs script processes the provided .key file and creates a .reg file next to itself.
- Later, a user can add the .reg file data into the registry (in a regular way to deal with the .reg files).


The PowerShell and the Windows VBScript scripts, and their function here are not 'the same.'

Of course, by design, both have to deal with the idea of reading the same source (.key file), and that's it.
Also, from the end user's point of view, they share the end result to a certain extent--an option to add the TotalCommander license to the registry.

VBScript (Microsoft Visual Basic Scripting Edition) is a programming language for scripting on Microsoft Windows using Component Object Model (COM) based on classic Visual Basic and Active Scripting, that is deprecated, will eventually be removed from Windows, and is not recommended.
PowerShell is a command-line shell and scripting language, that is open-source, cross-platform, built on .NET, commonly used for automating, and recommended.

It's good for a user to be well-informed and make the right choice of which approach fits their needs better within their environment.

Cheers.

Note:
Fellow users of this board, if interested, can find two kinds of the .vbs scripts (with some explanations from the authors) related to the 'TC-license-to-the-registry' question in a topic from 2010-2011: https://ghisler.ch/board/viewtopic.php?t=27098
The script that has been reposted here is namely one by CoolWater from there:
https://ghisler.ch/board/viewtopic.php?t=27098&p=207857#p207857
2Rein de Jong
since it is quite difficult to manage this task by hand, I've written a vb script for you:
If WScript.Arguments.Count > 0 Then...

Statistics: Posted by beb — 2024-12-28, 10:38 UTC



Viewing all articles
Browse latest Browse all 3827

Trending Articles