pwb.ini - call file from webserver ?

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

NeilUK
Observer
Observer
Posts: 2
Joined: Tue Sep 14, 2004 4:44 am

pwb.ini - call file from webserver ?

Post by NeilUK »

I'd like to be able to call the PWB.INI file from a webserver - i.e.

http://www.mysite.com/pwb/pwb.ini

Client PC is Windows 2000

Whats the best way to do this? any thoughts anyone?

chrism
Participant
Participant
Posts: 12
Joined: Sat Jan 04, 2003 5:34 pm
Location: Ketchum, Idaho USA
Contact:

Post by chrism »

I do something like that by using a URL to start another instance of PWB with a different .ini file. I use an old utility called W3Launch which is a little quirky but works well once configured. Java, javascript, or VBscript applications could potentially work as well if you keep in mind the security risks inherent in starting applications from a web link.

Chris

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

Post by Scott »

I added support for URL INI files in PWB v2.06. You enable the URL INI files by specifying /URLINI on command line.

Example:
...PWB.EXE /INI=C:\PWB\INI /URLINI=http://www.teamsoftwaresolutions.com/PWB.INI

You must specify a URL in the command line before specyfing a URL INI.

http://www.teamsoftwaresolutions.com/beta/PWBv206.zip

By the way, PWB supports built in External Dynamic Java Commands, one of which, JavaExecute, can launch applications form a web page.

--Scott

NeilUK
Observer
Observer
Posts: 2
Joined: Tue Sep 14, 2004 4:44 am

Post by NeilUK »

Scott - Many thanks for ini info.

PWB is going to solve an awful lot of problems for us! :)

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

Post by Scott »

PWB downloads the file from the URL to the file spcified by the "/INI". If the web server is slow it may take a few seconds for the file to download. You may want to use the "/s" switch to enable the splash screen.

The URL INI is a new addition to PWB please let me know if it is working as expect.

--Scott

rholt

urlini

Post by rholt »

Scott..

I am feeling like a moron.

I am trying to use an .ini on my webserver, would thi sbe the proper syntax?

"c:\program files\public web browser v2\PWB.exe" /URLINI="http://166.212.250.194\tech\pwball.ini"

Thanks,
Ryan

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

Post by Scott »

The URL INI is new, not fully documented yet, and you need to be using PWB v2.06. In order to use it PWB needs to know the URL of the file and where to download the file to. Where the file is downloaded to is specified in the /INI command line argument.

This will make your command line similar to this.

D:\PWB\PWB.exe /INI=D:\PWB\URL.ini /URLINI=http://www.teamsoftwaresolutions.com/PWB.INI

Make sure the account has write access to the /INI file. You may want to use the splash screen as it takes a few seconds for the INI to download.

BTW: I just posted a new v2.06 beta today.

--Scott

RHolt

syntax

Post by RHolt »

I am using 2.06

Here is my current syntax

"C:Program Files\TeamSoftware Solutions\Public Web Browser v2\" /INI="C:\Program Files\TeamSoftware Solutions\Public Web Browser v2\URL.ini" /URLINI="http://166.212.250.194/pwb/pwb.ini"

Am I even getting close? Are the "s necessary in V2.06?
Sorry for being a rube.

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

Post by Scott »

Is PWB giving an error message?

Try this...

"C:Program Files\TeamSoftware Solutions\Public Web Browser v2\PWB.exe" /INI="C:\Program Files\TeamSoftware Solutions\Public Web Browser v2\URL.ini" /URLINI=http://166.212.250.194/pwb/pwb.ini

I added the PWB.exe and removed the quotes from the /URLINI argument.

For testing, try using...

/URLINI=http://www.teamsoftwaresolutions.com/PWB.INI

--Scott

Rholt

URL.ini

Post by Rholt »

I get the following error, using my website or yours.

The wrong version of INI file or registry setting was used.

The INI is returning 2.05 as the version. This version of PWB requires 2.06 of the INI file.

Check your INI file or registry settings and try again.

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

Post by Scott »

It sounds like PWB is downloading the file. If you check the file in the /INI argument is it the file in the /URLINI argument?

I changed the INI file on our site to include DisableINIVersionCheck=True. This will allow this INI to work on any version of PWB.

--Scott

URL.ini

reaching out?

Post by URL.ini »

Scott,

In watching the packets, it's not reaching out to the server(s) to try to get the INI file. I tested after making the change to the version check line.

Ryan

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

Post by Scott »

What version of Windows and Internet Explorer are you using?

--Scott

rholt

urlini

Post by rholt »

win2000 and ie5.00.2920.0000

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

Post by Scott »

You should upgrade your Internet Explorer to at least 5.5. On my test system with Windows 2000 and IE 6.0 the URLINI seems to function.

--Scott

Post Reply