#28962 - 2002-09-13 11:19 PM
Re: Copying Shortcut
|
GRF
Fresh Scripter
Registered: 2002-02-15
Posts: 45
Loc: Ohio
|
Sorry, here is more. $icon98 is a variable that equals your file name. If exist = 0 means it isn't there, so it copies it. My code didn't quite post properly.
code:
$Icon98 = "C:\windows\DESKTOP\ESI.PIF" if exist ($icon98) = 0 copy "q:\esi98.pif" "C:\windows\desktop\ESI.pif" endif
GF
_________________________
GF
|
Top
|
|
|
|
#28964 - 2002-09-16 02:40 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
So on the value in the registery I can put: \\server\netlgon\short.bat (that has the copy command in the file)?
Thanks for all your help.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28966 - 2002-09-16 04:48 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Not to good a typist. That worked on my local Win98 PC. Thanks... Now is there a way I can use INGROUP and change the settings on user's registries if they are in the group that needs the icon or is this way to difficult for a beginner like me?
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28968 - 2002-09-16 07:36 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Do you have a copy of a script that will show me how to add to the RUNONCE registry settings to the Win98 PCs?
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28973 - 2002-09-16 08:17 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
I read some links on LOADKEY and I came up with the following code. When I run it it says missing comma. Where. Will this work?
if ingroup("TX Mapcon Test") Use O: /delete /PERSISTENT USE O: "\\server\Apps\Apps"/PERSISTENT LOADKEY (HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce \ICON, "ICON"="\\\\server\\netlogon\\short.bat")
endif exit
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28975 - 2002-09-16 08:23 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
LONKERO: Thanks that did it!
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28978 - 2002-09-16 08:42 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
I lied. I deleted the key and then rebooted and logged in. Did not put the change in the registry and did not load the shortcut.
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
#28979 - 2002-09-16 08:48 PM
Re: Copying Shortcut
|
Kathy
Getting the hang of it
Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
|
Hey guys, when I run kix32 xxx from command line with the writevalue statement like you posted in the forum I get a 0 ZERO showing on the screen. What is that?
The code below is what I am running. Kixtart 4.11 win98 users win2k servers if ingroup("Test") Use O: /delete /PERSISTENT USE O: "\\server\Apps\Apps"/PERSISTENT writevalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","icon","\\server\netlogon\start.bat","REG_SZ")
_________________________
Stupid is forever - Ignorance can be fixed.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
2 registered
(morganw, mole)
and 414 anonymous users online.
|
|
|