Jump to content

How Does WPI Find the Config File?


Recommended Posts

Hi,

If I create a new config file and then rerun WPI.hta it automatically reloads the new config file. However, if I load an existing config file, modify it, and then save it, re-running WPI does not autoload the config file I loaded. Where is it storing what config file to load when it runs. If I rename the new config file using windows and re-run WPI.hta, it (not surprisingly) doesn't find the config file. None of the files in the WPIScripts directory appear to get updated with a reference to the config file.

Similarly, I am looking to have multiple config files (each one contains a specific set of applications). If I do this, where is the location I should place the list of config files? Ideally, it would be somewhere that would not be overwritten when I update to a new version.

Thanks in advance!

Mark

Link to comment
Share on other sites


* Updated the options and config wizards to allow for creating new, loading
other, and saving current settings under different names.
There are new gadgets: New Options, Load, Save As...

The current files are displayed in the respective wizard. When exit each
wizard, that file is set as the default and will be loaded the next time WPI
is run. If the file does not exist it will default back to the original:
useroptions.js or config.js.

If the path contains '\WPI\WPIScripts\' it will be assumed the file is in the
WPI main folder and will change the path to relative './WPIScripts/'.

The files should be kept in the WPIScripts folder.

With the new command line args, you will have to specify them in your cmd
script since they are saved as registry entries.


* Updated the wpi.htm theme file yet again. Removed the config wizard <table>
gadget template and updated it to match the options wizard template. Sizes and
locations are now consistant. This does require a simple update to 5.0 themes.


* Added command line support to specify different config and user options
files:

WPI.hta options=useroptions_mritter.js config=config_mritter.js check=Work timer=30

If a path is not specified for the file, it will assume they are in
WPIScripts.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...