Post by TheFeDuke on Mar 3, 2016 1:50:01 GMT -5
Here is a batch script to start SPFLite from a DOS prompt [Edit: ,Shortcut or desktop .bat]. It requires no arguments and searches for SPFLite installation folders to present a menu that can include portable versions. A choice will then present any program versions within the selected folder if applicable. Any startup option arguments that are specified are passed to SPFLite as-is. Defaults are provided and automatically selected when no choices are available.
This script can be executed from anywhere and has no installation process or dependencies. If run from removable media, it searches for portable versions only on the root of that drive. [Edit: as well as the SPFLite system install and user Documents folders.] It uses commands that are not available on Win XP and has only been tested on 32- and 64-bit Windows 7. [Edit: Here is representative output run from a desktop batch script on 64-bit Windows 7 system]: (There is also a screenshot in a later post.)
Edited: Attached please find the code for the batch script in text form for downloading. Name it as you wish with an extension of '.bat' but the code is sensitive to the first label remaining as ':FindSPF'.
FindSPF.txt (25.83 KB)
I would appreciate feedback on how it performs on other Windows 7 systems and, of course Win 8 and 10. I shall post some of my known limitations and naming assumptions if there is any interest.
[Edited: A code preview of Version updated 3/29/2016 in the above attachment follows:]
Mar 2, 2016 11:08:03 GMT -5 George said:
John: . . . Thanks again for playing with these trial versions. . . .
John: . . . Thanks again for playing with these trial versions. . . .
SPFLite program folders found in 'C:\Program Files (x86)'
'1' C:\Program Files (x86)\SPFLite
'1.1' (01/23/2016) SPFLite.exe
'1.2' (12/03/2015) SPFLite.V8.3.5337.exe
'1.3' (01/23/2016) SPFLite.V8.3.6022.exe
'1.4' (03/01/2016) SPFLite84.exe
'0' C:\Program Files (x86)\SPFLiter' Contains no SPFLite programs
'0' C:\Users\Zani\Documents\SPFLite' Contains no SPFLite programs
SPFLite program folders found in 'C:\Users\Zani\Documents'
'2' C:\Users\Zani\Documents\SPFLite.V8.4.6026
'2.1' (02/22/2016) SPFLite.exe
'2.2' (02/22/2016) SPFLite.V8.4.Beta.exe
'2.3' (12/12/2015) SPFLite_V8.3.5295.exe
'2.4' (03/01/2016) SPFLite84.exe
(Default:'1') Choose from the program folders above: [1,2,C]?1
Selected: C:\Program Files (x86)\SPFLite
SPFLite program Versions found in 'C:\Program Files (x86)\SPFLite'
'1' (01/23/2016) SPFLite.exe
'2' (12/03/2015) SPFLite.V8.3.5337.exe
'3' (01/23/2016) SPFLite.V8.3.6022.exe
'4' (03/01/2016) SPFLite84.exe
(Default:'1') Choose from the program versions above: [1,2,3,4,C]?1
Selected: SPFLite.exe
SPFLite .INI Versions found in 'C:\Users\Zani\Documents\SPFLite'
'1' (03/07/2016) SPFLite.INI
Automatic selection made.
Selected: SPFLite.INI
Start "" "C:\Program Files (x86)\SPFLite\SPFLite.exe"
Enter 'EXIT' to end dbl-clk window...
Edited: Attached please find the code for the batch script in text form for downloading. Name it as you wish with an extension of '.bat' but the code is sensitive to the first label remaining as ':FindSPF'.
FindSPF.txt (25.83 KB)
I would appreciate feedback on how it performs on other Windows 7 systems and, of course Win 8 and 10. I shall post some of my known limitations and naming assumptions if there is any interest.
[Edited: A code preview of Version updated 3/29/2016 in the above attachment follows:]
@Echo Off @Echo Off
rem. READ ME - If this is distributed as a .txt file, rename to a .bat file after download.
:FindSPF Version 2.1 03/29/2016 Fix - Generalize determining Documents Folder
Rem.FindSPF Version 2.0 03/21/2016 Fix time/.ini and support SPFLite 'RUN' command
Rem.SPFedit Version 1.5 03/20/2016 mitigate Regional time display format
Rem.SPFedit Version 1.4 03/10/2016 added current version display
Rem.SPFedit Version 1.3 03/09/2016 added double-click ending and argument passing
Rem.SPFedit Version 1.2 03/07/2016 added .INI selection before starting SPFLite
Rem.SPFedit Version 1.1 03/05/2016 added program version display for system SPFLite
Rem. Author - John Andrejsons - accepting PM to user: thefeduke at DOStips forum
Rem. acknowledges code and influences from DOStips.com and its forum
Rem. http://spflite.freeforums.net/thread/244/spflite-command-supports-versions-options
John A.