#196962 - 2009-12-03 03:31 PM
Re: another project any guidance would be appreciated
[Re: Glenn Barnas]
|
BradV
Seasoned Scripter
Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
|
Ah, that is what is under the hat! I just don't bother hiding mine.
|
Top
|
|
|
|
#196972 - 2009-12-03 05:12 PM
Re: another project any guidance would be appreciated
[Re: Glenn Barnas]
|
itdaddy
Starting to like KiXtart
Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
|
Hey glenn it gives me an error on the write I am sure my syntax is wrong? I will keep trying, but any suggestions will be helpful..thanks back to the debugging and trial and errror. thanks
Break on
Dim $PClist
Dim $array
$PClist = "ftran1", "ftran2", "ftran3"
for each $Element in $PClist
If ReadProfileString('.\fsp.ini', 'Ubs', 'PCAlias') <> 'PCAlias=$Element'
LCase($Element)
? $Element
$Rc = WriteReadProfileString('.\fsp.ini', 'Ubs', 'pcAlias', 'PCAlias='+$Element)
Shell "CMD.EXE /C xcopy .\fsp.ini \\$Element\c$\WINDOWS\ /y"
EndIf
next
_________________________
Robert A+, CCNA, MCP Network Admin Credit Union Wisconsin
|
Top
|
|
|
|
#196975 - 2009-12-03 05:39 PM
Re: another project any guidance would be appreciated
[Re: Glenn Barnas]
|
itdaddy
Starting to like KiXtart
Registered: 2006-12-19
Posts: 145
Loc: Wisconsin
|
sorry glenn, not sure what goes in the correct_value is that the value on the right of the = sign? of pcalias? sorry for not understanding.
$PClist = "ftran1", "ftran2", "ftran3"
for each $Element in $PClist
If ReadProfileString('fsp.ini', 'Ubs', 'pcAlias') <> '$Element'
$Element = LCase($Element)
$Rc = WriteReadProfileString('fsp.ini', 'Ubs', 'pcAlias', '$Element')
EndIf
next
Edited by itdaddy (2009-12-03 05:44 PM)
_________________________
Robert A+, CCNA, MCP Network Admin Credit Union Wisconsin
|
Top
|
|
|
|
#196981 - 2009-12-03 06:20 PM
Re: another project any guidance would be appreciated
[Re: Glenn Barnas]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4549
Loc: USA
|
LOL!
I don't think it was the sunburn this time.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 514 anonymous users online.
|
|
|