Setting document paths

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
removablebrain
Participant
Participant
Posts: 10
Joined: Sun May 28, 2006 11:17 pm

Setting document paths

Post by removablebrain »

Is there a way to set a variable that defines the default path?

I know I can hard code all of the paths to the various document files (url.txt, ip.txt, etc..), but maybe there is an easier way to do this? It would be nice to set this parameter once. I work on several different machines with various builds, so the path changes depending on where they want the PWB directory located.

Thanks.

Scott
Site Admin
Site Admin
Posts: 2536
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Not currently, but I will add it to our list of new functionality for PWB.


You can use the registry to override the PWB INI file settings. In the "HKEY_CURRENT_USER\Software\TeamSoftware
Solutions\Public Web Browser v2" key, add a section name key and a new string value the corresponds to the value in the INI file.

For example to set the path to the URL file add the following to the registry.

HKEY_CURRENT_USER\Software\TeamSoftware Solutions\Public Web Browser v2\Files

CheckURLFile=E:\PWB\URL.txt

This will override the [Files]CheckURLFile in the PWB INI file for the current user.

In your logon scripts for the computer import the proper registry keys you want to override for the current user.

Please let me know if you have any questions.

--Scott

removablebrain
Participant
Participant
Posts: 10
Joined: Sun May 28, 2006 11:17 pm

Post by removablebrain »

Thanks Scott -- exactly what I need.

Post Reply