After a rewrite of the complete scripts and a hard proofment about all cases
that could anybody need:
Here it is: the new Projectrefresh 5.000!
http://www.pspad.com/files/pspad/rozsireni/265-Projectrefresh.zip
The new Features:
-Complete new Sortbehaviors (dynamic)
-better Performance by using more Arrays instead of
Sortfiles
-more Options to create a individual Project
-direct Parameterinputs or using Projectfile itself
instead of .ini File (also new: use .ini with projectname)
-use PsPad Extensionfilter if no other defined
-usage of more Dictionaries and Variables for better
structured code.
-usable as planned task with option "Silent=true"
-creation for a inifile with the parameters used before.
(Option IniGen=true)
The Reasons:
-Unless PsPad is getting better, the features for it
should be usable.
-Because of the use of Sortfiles (with the complete text
which to write in the projectfile) there was no chance
to really sort the found files at Extensions! You
should see hardened when Extensionfilters where given
but "NoExtSort=true" was defined.
How do it works?
-I'm filling initially 4 arrays with the data of found
folders and files
-When all paths are searched, the main array is refilled
in another array by using the new sortoptions.
-the sorted array is then written to projectfile
(temporary file) and the projectfolders are created
dynamically at writing the first file
The new options (for detailed information see the header of the file
PRefresh.vbs
(for note to new users not! to store in the VBScript-
Folder; extract the zip to PsPadfolder)):
"SubToFolder=true" =>
creates Projectfolder for each Subfolder
"Paths=" => before Propath
a commaseparated list of Paths to search in
"PathsAlias=" => before PathAlias
a commaseparated list of Names for Projectfolders
or
"CutPathAt=" =>
a simple string to search in folderspath
first leftcutted and if empty rightcutted else
fullpath
"Extensions=" => before FileFilter
a commaseparated extensionlist
"ExtensAlias=" => before FileAlias
a commaseparated list of Names for
Extensionsfolders
"NoUnknown=true" =>
ignores undefined Extensions, otherwise all
unknown files are registered in NoExt-Folder
"SubFolders=" =>
a commaseparated string with Foldernames to be
created as Subfolders in Projecttree
(logical and multidimensional and matches possible)
"ExclFolders=" =>
a commaseparated string with Folder-
Names or Paths not to be searched in
(matches possible)
"ExclFiles=" =>
a commaseparated string with filenames to be
ignored. (matches possible)
"ExclExtens=" =>
a commaseparated string with fileextensions to be
ignored (not for Extensions of Extensions-param)
"Sort=" =>
If omitted no Sort is activated. means all files
are flat listed sorted by there Subfolder.
others:
-PathExt: 1.Sort by Path then by Extension
-ExtPath: 1.Sort by Extension then by Path
-Path: 1.Sort by Path then by SubFolder
-Ext: 1.Sort by Extension then by SubFolder
"ActiveOnly=true" =>
If more than one Folders are searched only the
first hit of a relative Path is saved.
Please try and report!
B-]
--
<http://forum.pspad.com/read.php?2,40224,54064>
PSPad freeware editor http://www.pspad.com