TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: David P. Cravshaw
from: mark lewis
date: 2003-11-12 10:05:06
subject: Toggle proxy setting in IE?

DPC> It should work with a .vbs.  You may need to be running IE
 DPC> 5.5+ for it to work, but that's may only be related to the WMI
 DPC> script I posted a little bit earlier.  Note, you will need to
 DPC> restart IE for the setting below to take effect.

 DPC> What error does .vbs give?

exactly as it is written below, cut and pasted into a notepad file and
renamed to blah.vbs...

Script:  C:\WINDOWS\Desktop\blah.vbs
Line:    1
Char:    43
Error:   Expected end of statement
Code:    800A0401
Source:  Microsoft VBScript compilation error

seems that some wordwrap and character replacement schitt got in the way...
"key =" should start on a line of its own for one thing... i just
tried moving that one part to a new line and everything worked... wierd, i
must have been too tired last night when i was messing with it as i was
also getting stuff about invalid characters, too...

oh well... it works now... thanks! it was a small learning experience...

)\/(ark

 DPC> dpc


 DPC> "Mark.Lewis"  wrote in message
 DPC> news:809e1c.6bb3b3{at}harborwebs.com...
>> DPC> I just found this over on the MS news servers in
>>  DPC> microsoft.public.scripting.wsh:
>>
>>  DPC> set shell = createobject("wscript.shell") key = _
>>  DPC>     "HKEY_CURRENT_USER\Software\" _
>>  DPC>   & "Microsoft\Windows\CurrentVersion\" _
>>  DPC>   & "Internet Settings\ProxyEnable"
>>  DPC> if MsgBox("Disable Proxy server?",vbYesNo) = vbYes then
>>  DPC>   shell.regwrite key,CLng(0), "REG_DWORD"
>>  DPC> else
>>  DPC>   shell.regwrite key,CLng(1), "REG_DWORD"
>>  DPC> end if
>>
>> i know this is going to sound very newbie but...
>>
>> what file extension goes with the above code?? .vbs gives an error... .wsh
 DPC> says
>> there's no script name specified... nothing i've found so far tells what
>> extension goes on the source files...
>>
>> guess i know why i still do bat, btm and cmd files ;-)
>>
>> )\/(ark
>>

 DPC> --- BBBS/NT v4.01 Flag-5
 DPC> (1:379/45)

>> * Origin: (1:3634/12)
DPC> * Origin: Barktopia BBS Site http://HarborWebs.com:8081
* Origin: (1:3634/12)
SEEN-BY: 633/267 270
@PATH: 3634/12 106/2000 396/45 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.