OT: Script question, Doug?
#11
Guest
Posts: n/a
Re: Script question, Doug?
I don't have that key in mine fwiw. Internet Explorer doesn't have an
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
#12
Guest
Posts: n/a
Re: Script question, Doug?
I don't have that key in mine fwiw. Internet Explorer doesn't have an
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
#13
Guest
Posts: n/a
Re: Script question, Doug?
I don't have that key in mine fwiw. Internet Explorer doesn't have an
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
underscore, and there is no Window underneath it.
Dave Milne, Scotland
Carl S wrote:
> Doug,
>
> Here's what I've got so far.
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> Title = objShell.RegRead _
> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>
> If Title = "Carl2" Then
> Wscript.regwrite "carl3"
> Else
> Wscript.regwrite "carl7"
> End If
>
> The problem is that no matter what combinaton I use to enter my path, it
> says not found...
>
> Carl
>
>
> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>> Doug,
>>
>> I need to write a script to modify a registry entry of a given key with
>> one of 3 values I will provide. The order it selects the new values isn't
>> important, so long as it selects a different value each time. This can be
>> a .exe or .bat, as I will be dropping it into the windows startup. It
>> doesn't need to be pretty, but must require minimal user intervention.
>>
>> Can this be done without a code compiler?
>>
>> The last coding I did was years ago with C++.
>>
>> I was thinking something like pull the existing key and load into a
>> variable, then compare the variable against a rule set and replace it
>> accordingly.
>>
>> (script grabs value, assigns name 'value')
>>
>> 1 = "jeep"
>> IF value="jeep" GOTO 2
>>
>> 2 = "wrangler"
>> IF value="wrangler" GOTO 3
>>
>> 3 = "cherokee"
>> IF value="cherokee" GOTO 1
>>
>> (script replaces value)
>>
>> Some pointers would be great..
>>
>> Carl
>>
>
>
#14
Guest
Posts: n/a
Re: Script question, Doug?
Ya, i was trying diff stuff with adding the underscore. You've got to add
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
#15
Guest
Posts: n/a
Re: Script question, Doug?
Ya, i was trying diff stuff with adding the underscore. You've got to add
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
#16
Guest
Posts: n/a
Re: Script question, Doug?
Ya, i was trying diff stuff with adding the underscore. You've got to add
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
#17
Guest
Posts: n/a
Re: Script question, Doug?
Ya, i was trying diff stuff with adding the underscore. You've got to add
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
the
'Window Title' string in order to be able to title your internet explorer
window.
Carl
"Dave Milne" <jeep@nospam.milne.info> wrote in message
news:JbqFi.12328$c_1.4752@text.news.blueyonder.co. uk...
>I don't have that key in mine fwiw. Internet Explorer doesn't have an
>underscore, and there is no Window underneath it.
>
> Dave Milne, Scotland
>
> Carl S wrote:
>> Doug,
>>
>> Here's what I've got so far.
>>
>> Set objShell = WScript.CreateObject("WScript.Shell")
>> Title = objShell.RegRead _
>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>
>> If Title = "Carl2" Then
>> Wscript.regwrite "carl3"
>> Else
>> Wscript.regwrite "carl7"
>> End If
>>
>> The problem is that no matter what combinaton I use to enter my path, it
>> says not found...
>>
>> Carl
>>
>>
>> "Carl S" <carlsaiyed@REMOVE.hotmail.com> wrote in message
>> news:e9Gdne3Ggv4fjnvbnZ2dnUVZ_r2nnZ2d@comcast.com. ..
>>> Doug,
>>>
>>> I need to write a script to modify a registry entry of a given key
>>> with one of 3 values I will provide. The order it selects the new values
>>> isn't important, so long as it selects a different value each time. This
>>> can be a .exe or .bat, as I will be dropping it into the windows
>>> startup. It doesn't need to be pretty, but must require minimal user
>>> intervention.
>>>
>>> Can this be done without a code compiler?
>>>
>>> The last coding I did was years ago with C++.
>>>
>>> I was thinking something like pull the existing key and load into a
>>> variable, then compare the variable against a rule set and replace it
>>> accordingly.
>>>
>>> (script grabs value, assigns name 'value')
>>>
>>> 1 = "jeep"
>>> IF value="jeep" GOTO 2
>>>
>>> 2 = "wrangler"
>>> IF value="wrangler" GOTO 3
>>>
>>> 3 = "cherokee"
>>> IF value="cherokee" GOTO 1
>>>
>>> (script replaces value)
>>>
>>> Some pointers would be great..
>>>
>>> Carl
>>>
>>
#18
Guest
Posts: n/a
Re: Script question, Doug?
Carl S wrote:
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>
#19
Guest
Posts: n/a
Re: Script question, Doug?
Carl S wrote:
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>
#20
Guest
Posts: n/a
Re: Script question, Doug?
Carl S wrote:
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>
> Ya, i was trying diff stuff with adding the underscore. You've got to
> add the
> 'Window Title' string in order to be able to title your internet
> explorer window.
It's one of those customization tweaks.
objShell.RegWrite strKey,strValue,"REG_SZ"
^^^^^^^^ your using Wscript ^^^^^^^ indicates your writing a string value
in the Set command, you Set objShell. For example, if you did
Set beermug = CreateObject("WScript.Shell")
then you would use
beermug.RegWrite ......
Hope this helps. I gotta get to $dayjob now.
> "Dave Milne" wrote ...
>> I don't have that key in mine fwiw. Internet Explorer doesn't have an
>> underscore, and there is no Window underneath it.
>>
>> Dave Milne, Scotland
>>
>> Carl S wrote:
>>> Doug,
>>>
>>> Here's what I've got so far.
>>>
>>> Set objShell = WScript.CreateObject("WScript.Shell")
>>> Title = objShell.RegRead _
>>> ("HKCU\Software\Microsoft\Internet_Explorer\Main\W indow")
>>>
>>> If Title = "Carl2" Then
>>> Wscript.regwrite "carl3"
>>> Else
>>> Wscript.regwrite "carl7"
>>> End If
>>>
>>> The problem is that no matter what combinaton I use to enter my
>>> path, it says not found...
>>>
>>> Carl
<snip>