Hello Kenny,

the script is simply searching "line by line" for the entry "DefaultDir" (entry
Project Default Directory in PSPad) in the projectfile.
If this is not the right path, specify that right path as "DocumentRoot" in your
Project Settings, open the script  with an editor and search for "Dim DocRoot";
finally write a new line after the found expression "DocRoot=true" and save the
script.
Note:
-the script is only able to refresh a project when a projectfile exists (to be
sure save the project and reopen it by double-click on the projectfile in
Windows-Explorer).
-A default project directory must been given

Ok there's a little bug:
-the Script is not checking, if a new projectfile could be created, before
asking for a restart of PSPad.
Will be fixed with next nesessary update...
The new Projectfile have the same name as the original + .tmp and can be
controlled before answering the question of restart.

@Steve and Jan
As discussed before there are many ways how to refresh a project. So I thing
best is a description, of how the script is working, here (is also available in
the script):

The script provides 3 ways of Projectstructures!
1. As decribed before, the DefaultDir or Documentpath is searched, every found
file is written flat in a Projectfolder named like the Projectfile.
2. If a File named "propath.txt" exists in the directory of the projectfile, it
is used to search for every line of that File for existing Folder entries which
will be searched and created as separated Projectfolders with File flat stored
in.
3. If a File named "project.ini" is in the projectfiles directory it will be
used instead of options before.
It should contain at least a list of Paths
in Form:
Propath=D:\Projects\y51\gui,D:\Projects\x51\gui
...So far the reaction is like before... 

And Optional a Filefilter and (optional) its aliaslist:
FileFilter=.p,.w,.i,.if,.lib,.cdf,.tdf,.swf,.df,.ldf,.fir,.fld,.sl,.pds,.cst,.lf
r,.sst,.yxp,.yxw,.yxi,.yxl,.yxf,.xxp,.xxw,.xxi,.xxl,.xxf
FileAlias=Procedur,Window,Include,Include,Library,Constants,TempTable,Workfile,D
efinition,Definition,FirmIncl,FillIncl,KeyIncl,Dataset,Template,Framedef,Streamd
ef,YExitProc,YExitWin,YExitIncl,YExitLib,YExitFill,XExitProc,XExitWin,XExitIncl,
XExitLib,XExitFill

For every Path given and for every Filefilter in Path a Projectfolder is created
containing the found Files.
To sort the files dynamically in the filefilters categories, the script uses
temporary files in your userprofiles tempfolder.

If the projectfolders names are to long there's a little hint in the script to
cut the names specific to your usage (search for "specific" in the script).

Please all together:
I created that script on my own needs.
it's working for that decribed cases as perfect as I need it.
For other cases it have to be modified, what I whould do if you tell me how you
want it.
But best way will be to learn a bit about VBScript and selfmodify the script or
write a new one for special needs.

Greetings Holger

-- 
<http://forum.pspad.com/read.php?2,40224,40939>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem