#122086 - 2004-07-02 03:38 PM
passing variable
|
Stealth
Fresh Scripter
Registered: 2001-08-09
Posts: 48
Loc: Scotland
|
Can someone please enlighten me I cant get my head round this heres part of my script
:variables $CITRIXCHECK = "C:\Winnt\Profiles\%username%\Application Data\ICAClient" $HOMEDIR = "%HOMEDRIVE%%HOMEPATH%" ; Required - Path For Users Home Directory $AUTOCORRECT = $HOMEDIR+"Autocorrect\" ; Required - Default path for locaton of Auto Correct files. $OUTLOOKROOT = $HOMEDIR+"Exchange\" ; Required - Default Path For Outlook Files ; $HKCUSMWCVEUSF = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" $HKCUSMWCVIS = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" $HKCUSMWCVISPS = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer" $HKCUSMWCVPE = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" $HKCUSMO8CFNLT = "HKCU\Software\Microsoft\Office\8.0\Common\FileNew\LocalTemplates\" $HKCUCPC = "HKCU\Control Panel\Colors" $HKCUCPDT = "HKCU\Control Panel\Desktop" $HKCUSMWCVIE4SS = "HKCU\Software\Microsoft\Windows\CurrentVersion\IE4 Screen Saver" $HKCUSPMIECP = "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel" $HKCUSMWCVISZMD = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" $HKCUSMWCVISZM = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges" $HKCUSMWCVISZMR = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range" $HKCUSMWCVISZ1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" $HKCUSMO8CAC = "HKCU\Software\Microsoft\Office\8.0\Common\AutoCorrect\" $HKCUSMO8OOE = "HKCU\Software\Microsoft\Office\8.0\Outlook\Office Explorer" $HKCUSMIE = "HKCU\Software\Microsoft\Internet Explorer" $HKCUSMIEM = "HKCU\Software\Microsoft\Internet Explorer\Main" $HKCUIACD = "HKCU\IDENTITIES\Auto Correct Done" $HKCUSPMIER = "HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions" : proxy_settings
If Val (ReadProfileString(C: +'\Kix\include.ini','Include',@WKSTA)) = 1 $nul=WriteValue($HKCUSMWCVIS,"ProxyEnable","1","REG_DWORD") EndIf ; $Proxy = ReadProfileString(c: +'\Kix\include.ini','Include','Proxy') WriteValue($HKCUSMWCVIS,"ProxyServer",'$Proxy',"REG_SZ")
Contents of include.ini
[Include]
PCNAME=1 ; Allows certain comuputers to have proxy enabled
[Proxy]
PROXYSERVER:PORTNUMBER ; Hopefully writes the proxy listed here to the registry
I want to be able to read the value in the include.ini under the header proxy and pass it to the writevalue and write it to the registry
Any help appreciated thanks in advance
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|