Page 2 of 3 <123>
Topic Options
#45562 - 2003-09-22 09:09 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
Jack, the correct script is running, because the statement that copies the common icons to the Desktop get copied. And, if I change the statement to copy icons to the Desktop instead of the Programs folder, the icons get copied.
Top
#45563 - 2003-09-24 01:50 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
I have changed the /Q switch to /F and the source and destination paths look correct. In fact the output to the screen shows that x number of files were copied for each subfolder of Programs, yet no @%# icons. Unless I run the script from the Run or Command line, after I am logged on.
Top
#45564 - 2003-09-24 02:01 PM Re: Icons don't get copied
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
This is a strange one indeed, this is one of those cases where I wish all the board members could come-on-over to your place and shoulder surf while you are running this puppy ...

Are you running your logon scripts synchronously or asynchronously ? Just for a test, i would "flip" whatever setting you have, here is the key - if it aint there, create it:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

RunLogonScriptSync = 0/1

0 = Dont run synchronous
1 = Run synchronous

-Shawn

[edit]

ps. There is an indentical key in HLKM that will take precedence if it is set ... might have to tweak that one as well.

[ 24. September 2003, 14:03: Message edited by: Shawn ]

Top
#45565 - 2003-09-24 02:48 PM Re: Icons don't get copied
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
quote:
LLigetfa, we are running/calling our kix script from within the UsrLogon.cmd file
Shawn,
This is not a true logon script in the standard sense so the RunLogonScriptSync may not apply. Well, maybe it does if the domain logon script runs concurrently and affect the UsrLogon.cmd script.

It has to be a case of the user profile is not ready yet. This, of course is a load order issue.

[ 24. September 2003, 14:49: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#45566 - 2003-09-24 06:01 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
Shawn, as you suggested I have added the registry value for RunLogonScriptSync and have tried running the logon script synchronously or asynchronously and neither helped.

LLigetfa, the same script I am trying to use already works on a different set of Citrix servers and as far I can tell the server settings and permissions to files/folders and registry are the same.

Top
#45567 - 2003-09-24 06:07 PM Re: Icons don't get copied
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I have an idea here...

Instead of making this user-specific, why not copy the needed icons/apps to the "All Users" in all of your severs in your Citrix Farm? This would be a one-time fix for everybody in your organization.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45568 - 2003-09-29 01:28 AM Re: Icons don't get copied
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We have a idea what is going wrong. Only in your script we are missing the COPY part.
So for this part we can't write some debugging code.
About your script first a remark: $cr, $lf, $nl you are using during printing information on your
screen. it is enough to use ? for a newline.
Secondly it contains all kind of TAB characters which aren't directly visible. We transfer them in
our version into spaces.

In our version we add some debugging information to it. Also we remove the $rc? prefix
during WriteValue.
Our version
code:
 ; Global variables used in main program and subroutines
;
$cachedprofile = "%UserProfile%"
$cr = Chr(13)
$lf = Chr(10)
$nl = $cr+$lf
$homedir = "%HOMEDRIVE%%HOMEPATH%"
$logfile = "$HomeDir"+"logon.log"
$tempdir = "E:\Temp\@UserID"
$shellfolders_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
$usershellfolders_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
$userapprun_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Run"
$fiaapps = "%LOGONSERVER%\FIAApps" ; FIAApps source directory (share on authenticating server)
$tempfile = $tempdir+"\UsrLogon.tmp"
;
; Define Profile Folder Paths
;
$appdata_folder = "$CachedProfile\Application Data"
$appsrv_folder = "$AppData_Folder\ICAClient"
$appsrv_src = "D:\Software\Client"
$cache_folder = "$CachedProfile\Temporary Internet Files"
$cookies_folder = "$CachedProfile\Cookies"
$desktop_folder = "$CachedProfile\Desktop"
$favorites_folder = "$CachedProfile\Favorites"
$fonts_folder = "%SystemRoot%\Fonts"
$history_folder = "$CachedProfile\History"
$nethood_folder = "$CachedProfile\NetHood"
$personal_folder = "H:\"
$printhood_folder = "$CachedProfile\PrintHood"
$programs_folder = "$CachedProfile\Start Menu\Programs"
$recent_folder = "$CachedProfile\Recent"
$sendto_folder = "$CachedProfile\SendTo"
$startmenu_folder = "$CachedProfile\Start Menu"
$startup_folder = "$CachedProfile\Start Menu\Programs\Startup"
$templates_folder = "$HomeDir"+"Winword\Template"
;
; - debugging info -
;
? "cachedprofile = " "%UserProfile%"
? "homedir = " "%HOMEDRIVE%%HOMEPATH%"
? "logfile = " "$HomeDir"+"logon.log"
? "tempdir = " "E:\Temp\@UserID"
? "shellfolders_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
? "usershellfolders_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
? "userapprun_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Run"
? "fiaapps = " "%LOGONSERVER%\FIAApps" ; FIAApps source directory (share on authenticating server)
? "tempfile = " $tempdir+"\UsrLogon.tmp"
; Define Profile Folder Paths
? "appdata_folder = " "$CachedProfile\Application Data"
? "appsrv_folder = " "$AppData_Folder\ICAClient"
? "appsrv_src = " "D:\Software\Client"
? "cache_folder = " "$CachedProfile\Temporary Internet Files"
? "cookies_folder = " "$CachedProfile\Cookies"
? "desktop_folder = " "$CachedProfile\Desktop"
? "favorites_folder = " "$CachedProfile\Favorites"
? "fonts_folder = " "%SystemRoot%\Fonts"
? "history_folder = " "$CachedProfile\History"
? "nethood_folder = " "$CachedProfile\NetHood"
? "personal_folder = " "H:\"
? "printhood_folder = " "$CachedProfile\PrintHood"
? "programs_folder = " "$CachedProfile\Start Menu\Programs"
? "recent_folder = " "$CachedProfile\Recent"
? "sendto_folder = " "$CachedProfile\SendTo"
? "startmenu_folder = " "$CachedProfile\Start Menu"
? "startup_folder = " "$CachedProfile\Start Menu\Programs\Startup"
? "templates_folder = " "$HomeDir"+"Winword\Template"
;
:fixshellfolderpaths
;*******************
;
IF "$Verbose" = "Yes"
? "Fix shell folder paths" ; <-----
ENDIF
;
; Update Shell Folder path registry values
$folders_key = "$ShellFolders_Key"
$value_type = "REG_SZ"
? "folders_key (shell folder) "+$folders_key
GOSUB writeshellfolderpaths
;
; Update User Shell Folder path registry values
$folders_key = "$UserShellFolders_Key"
$value_type = "REG_EXPAND_SZ"
? "folders_key (user shell folder) "+$folders_key
GOSUB writeshellfolderpaths
RETURN ; <-----
;
:writeshellfolderpaths
;*********************
;
; Overwrite Shell Folder Path Registry Values
;
WriteValue("$Folders_Key", "AppData", "$AppData_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Cache", "$Cache_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Cookies", "$Cookies_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Desktop", "$Desktop_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Favorites", "$Favorites_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Fonts", "$Fonts_Folder", "$Value_Type")
WriteValue("$Folders_Key", "History", "$History_Folder", "$Value_Type")
WriteValue("$Folders_Key", "NetHood", "$NetHood_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Personal", "$Personal_Folder", "$Value_Type")
WriteValue("$Folders_Key", "PrintHood", "$PrintHood_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Programs", "$Programs_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Recent", "$Recent_Folder", "$Value_Type")
WriteValue("$Folders_Key", "SendTo", "$SendTo_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Start Menu", "$StartMenu_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Startup", "$Startup_Folder", "$Value_Type")
WriteValue("$Folders_Key", "Templates", "$Templates_Folder", "$Value_Type")
;$ret = "$R1$R2$R3$R4$R5$R6$R7$R8$R9$R10$R11$R12$R13$R14$R15$R16"
;IF $ret <> "0000000000000000"
; ?
; ? "Error updating $Folders_Key, return code: $Ret" ; <-----
; ?
; ? "The regsitry security permissions within your user profile may be incorrect."
; ? "Please report this problem to a system administrator."
;ENDIF
RETURN

;($begin)
;
; mon 29-sep-2003 01:20:58 (kix 4.20 vs 4.00e)
;
;Informative KIXSTRIP: no errors found (input=117 output=117 skip=0).
;
;Summary KIXSTRIP: block structures
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; - if:else:endif [1:0:1]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Informative KIXSTRIP: 1 block_structure found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: 2 labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 2 GOSUB
;Informative KIXSTRIP: 2 RETURN
;
;($end)

A simple run returns for the first part
code:
cachedprofile      = MCA
homedir =
logfile = logon.log
tempdir = E:\Temp\ADMINISTRATOR
shellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
usershellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
userapprun_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Run
fiaapps = \FIAApps
tempfile = E:\Temp\ADMINISTRATOR\UsrLogon.tmp
appdata_folder = MCA\Application Data
appsrv_folder = MCA\Application Data\ICAClient
appsrv_src = D:\Software\Client
cache_folder = MCA\Temporary Internet Files
cookies_folder = MCA\Cookies
desktop_folder = MCA\Desktop
favorites_folder = MCA\Favorites
fonts_folder = \Fonts
history_folder = MCA\History
nethood_folder = MCA\NetHood
personal_folder = H:\
printhood_folder = MCA\PrintHood
programs_folder = MCA\Start Menu\Programs
recent_folder = MCA\Recent
sendto_folder = MCA\SendTo
startmenu_folder = MCA\Start Menu
startup_folder = MCA\Start Menu\Programs\Startup
templates_folder = Winword\Template

Also we add to same script some debugging code to it. We did it with
our tool kixstrip which you can find on out site.
Our debugging version:
code:
            ;CLS
IF (instr("-3.0x-3.1x-3.2x-3.3x-","-"+substr(@kix,1,3)+"x-") <> 0)
IF MessageBox("sorry, your kixtart "+@kix+" release is too old."+CHR(13)+CHR(10)+CHR(13)+CHR(10)+" please upgrade.","KiXtart "+@kix+" info",4112,300)
ENDIF
EXIT
ENDIF
COLOR C+/N
;AT (1,1) " "

$_debug_file="kixdebug.txt" ; - %tmp% directory -
IF (len($_debug_file) <> 0)
IF (substr("%tmp%",len("%tmp%"),1) = "\")
$_debug_file="%tmp%"+$_debug_file
ELSE
$_debug_file="%tmp%\"+$_debug_file
ENDIF
ENDIF
;$_debug_file="c:\kixdebug.txt"
IF RedirectOutput($_debug_file)
ENDIF

? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/4.00e script starting"
IF (Val(substr(@kix,1,1)) >= 4)
IF (len(@scriptname) <> 0)
" ("+LCASE(@scriptname)+")"
ENDIF
ENDIF
? "-"
IF ("$_debug_already_starting" <> "yes")
? "-curdir: "+LCASE(@curdir)
? "-scriptdir: "+LCASE(@scriptdir)
IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0)
? "-scriptname: "+LCASE(@scriptname)
ENDIF
? "-startdir: "+LCASE(@startdir)
? "-"
? "-userid: "+LCASE(@userid)+"/"+LCASE(@wuserid)
? "-user priv: "+LCASE(@priv)
IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0)
? "-version: inwin="+@inwin+"/dos="+@dos+"/productsuite="+@productsuite+"/producttype="+@producttype+"/csd="+LTRIM(RTRIM(@csd))
ELSE
? "-version: inwin="+@inwin+"/dos="+@dos
ENDIF
? "-"
IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0)
? "-"+@cpu+" (memory "+MemorySize()+" MB)"
? "-"
ENDIF
ENDIF

$_debug_temp_name="" ; -format: yyyymmdd_hhmmss.sss_999 scriptname-
IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") <> 0) OR (Val(substr(@kix,1,1)) >= 4)
IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0)
$_debug_temp_name=@msecs
SELECT
CASE (len($_debug_temp_name) = 1)
$_debug_temp_name="00"+$_debug_temp_name
CASE (len($_debug_temp_name) = 2)
$_debug_temp_name="0"+$_debug_temp_name
ENDSELECT
$_debug_temp_name="."+$_debug_temp_name
IF Srnd(@msecs)
ENDIF
SLEEP 0.050
ELSE
IF Srnd((-1)*32767/(substr(@time,7,2)+1))
ENDIF
SLEEP 1
ENDIF
$_debug_temp_name=substr(@date,1,4)+substr(@date,6,2)+substr(@date,9,2)+"_"+substr(@time,1,2)+substr(@time,4,2)+substr(@time,7,2)+$_debug_temp_name+"_"+Rnd()
IF (len($_debug_temp_name) < 25)
$_debug_temp_name=substr($_debug_temp_name+" ",1,25)
ENDIF
IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0)
IF (len(@scriptname) < 12)
$_debug_temp_name=$_debug_temp_name+" "+substr(@scriptname+" ",1,12)
ELSE
$_debug_temp_name=$_debug_temp_name+" "+@scriptname
ENDIF
ENDIF
ENDIF

IF ("$_debug_already_starting" <> "yes")
? "-debug file: "+$_debug_file
? "-debug name: "+LCASE($_debug_temp_name)
ELSE
IF (len($_debug_temp_name) <> 0)
? "-debug: "+LTRIM(RTRIM(LCASE($_debug_temp_name)))+" -> "+$_debug_file
ELSE
? "-debug-file: "+$_debug_file
ENDIF
ENDIF

IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") = 0) AND (Val(substr(@kix,1,1)) < 4)
GOTO _debug_starting_point
ENDIF
DIM $_debug_name ; -create local variable-
:_debug_starting_point
$_debug_name=LCASE($_debug_temp_name)
$_debug_already_starting="yes"
? "-"
?"----- start-"+@time+"-"+$_debug_name+"- @error @serror"?

?"- 1-"+@time+"-"+$_debug_name+"- @error @serror"? ; Global variables used in main program and subroutines
?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? $cachedprofile = "%UserProfile%"
?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? $cr = Chr(13)
?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? $lf = Chr(10)
?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? $nl = $cr+$lf
?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? $homedir = "%HOMEDRIVE%%HOMEPATH%"
?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? $logfile = "$HomeDir"+"logon.log"
?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? $tempdir = "E:\Temp\@UserID"
?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? $shellfolders_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? $usershellfolders_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? $userapprun_key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Run"
?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? $fiaapps = "%LOGONSERVER%\FIAApps" ; FIAApps source directory (share on authenticating server)
?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? $tempfile = $tempdir+"\UsrLogon.tmp"
?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? ; Define Profile Folder Paths
?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? $appdata_folder = "$CachedProfile\Application Data"
?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? $appsrv_folder = "$AppData_Folder\ICAClient"
?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? $appsrv_src = "D:\Software\Client"
?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? $cache_folder = "$CachedProfile\Temporary Internet Files"
?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? $cookies_folder = "$CachedProfile\Cookies"
?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? $desktop_folder = "$CachedProfile\Desktop"
?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? $favorites_folder = "$CachedProfile\Favorites"
?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? $fonts_folder = "%SystemRoot%\Fonts"
?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? $history_folder = "$CachedProfile\History"
?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? $nethood_folder = "$CachedProfile\NetHood"
?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"? $personal_folder = "H:\"
?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? $printhood_folder = "$CachedProfile\PrintHood"
?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? $programs_folder = "$CachedProfile\Start Menu\Programs"
?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"? $recent_folder = "$CachedProfile\Recent"
?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? $sendto_folder = "$CachedProfile\SendTo"
?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? $startmenu_folder = "$CachedProfile\Start Menu"
?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? $startup_folder = "$CachedProfile\Start Menu\Programs\Startup"
?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? $templates_folder = "$HomeDir"+"Winword\Template"
?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"? ; - debugging info -
?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? ? "cachedprofile = " "%UserProfile%"
?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? ? "homedir = " "%HOMEDRIVE%%HOMEPATH%"
?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? ? "logfile = " "$HomeDir"+"logon.log"
?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"? ? "tempdir = " "E:\Temp\@UserID"
?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? ? "shellfolders_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? ? "usershellfolders_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? ? "userapprun_key = " "HKCU\Software\Microsoft\Windows\CurrentVersion\Run"
?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"? ? "fiaapps = " "%LOGONSERVER%\FIAApps" ; FIAApps source directory (share on authenticating server)
?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? ? "tempfile = " $tempdir+"\UsrLogon.tmp"
?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? ; Define Profile Folder Paths
?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? ? "appdata_folder = " "$CachedProfile\Application Data"
?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? ? "appsrv_folder = " "$AppData_Folder\ICAClient"
?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"? ? "appsrv_src = " "D:\Software\Client"
?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? ? "cache_folder = " "$CachedProfile\Temporary Internet Files"
?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? ? "cookies_folder = " "$CachedProfile\Cookies"
?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? ? "desktop_folder = " "$CachedProfile\Desktop"
?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"? ? "favorites_folder = " "$CachedProfile\Favorites"
?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"? ? "fonts_folder = " "%SystemRoot%\Fonts"
?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? ? "history_folder = " "$CachedProfile\History"
?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? ? "nethood_folder = " "$CachedProfile\NetHood"
?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? ? "personal_folder = " "H:\"
?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? ? "printhood_folder = " "$CachedProfile\PrintHood"
?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"? ? "programs_folder = " "$CachedProfile\Start Menu\Programs"
?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? ? "recent_folder = " "$CachedProfile\Recent"
?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? ? "sendto_folder = " "$CachedProfile\SendTo"
?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? ? "startmenu_folder = " "$CachedProfile\Start Menu"
?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? ? "startup_folder = " "$CachedProfile\Start Menu\Programs\Startup"
?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"? ? "templates_folder = " "$HomeDir"+"Winword\Template"
?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? ; EXIT ; for our test
?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? :fixshellfolderpaths
?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? ;*******************
?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 72-"+@time+"-"+$_debug_name+"- @error @serror"? IF "$Verbose" = "Yes"
?"- 73-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Fix shell folder paths" ; <-----
?"- 74-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 75-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 76-"+@time+"-"+$_debug_name+"- @error @serror"? ; Update Shell Folder path registry values
?"- 77-"+@time+"-"+$_debug_name+"- @error @serror"? $folders_key = "$ShellFolders_Key"
?"- 78-"+@time+"-"+$_debug_name+"- @error @serror"? $value_type = "REG_SZ"
?"- 79-"+@time+"-"+$_debug_name+"- @error @serror"? ? "folders_key (shell folder) "+$folders_key
?"- 80-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB writeshellfolderpaths
?"- 81-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 82-"+@time+"-"+$_debug_name+"- @error @serror"? ; Update User Shell Folder path registry values
?"- 83-"+@time+"-"+$_debug_name+"- @error @serror"? $folders_key = "$UserShellFolders_Key"
?"- 84-"+@time+"-"+$_debug_name+"- @error @serror"? $value_type = "REG_EXPAND_SZ"
?"- 85-"+@time+"-"+$_debug_name+"- @error @serror"? ? "folders_key (user shell folder) "+$folders_key
?"- 86-"+@time+"-"+$_debug_name+"- @error @serror"? GOSUB writeshellfolderpaths
?"- 87-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN ; <-----
?"- 88-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 89-"+@time+"-"+$_debug_name+"- @error @serror"? :writeshellfolderpaths
?"- 90-"+@time+"-"+$_debug_name+"- @error @serror"? ;*********************
?"- 91-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 92-"+@time+"-"+$_debug_name+"- @error @serror"? ; Overwrite Shell Folder Path Registry Values
?"- 93-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 94-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "AppData", "$AppData_Folder", "$Value_Type")
?"- 95-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Cache", "$Cache_Folder", "$Value_Type")
?"- 96-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Cookies", "$Cookies_Folder", "$Value_Type")
?"- 97-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Desktop", "$Desktop_Folder", "$Value_Type")
?"- 98-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Favorites", "$Favorites_Folder", "$Value_Type")
?"- 99-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Fonts", "$Fonts_Folder", "$Value_Type")
?"- 100-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "History", "$History_Folder", "$Value_Type")
?"- 101-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "NetHood", "$NetHood_Folder", "$Value_Type")
?"- 102-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Personal", "$Personal_Folder", "$Value_Type")
?"- 103-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "PrintHood", "$PrintHood_Folder", "$Value_Type")
?"- 104-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Programs", "$Programs_Folder", "$Value_Type")
?"- 105-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Recent", "$Recent_Folder", "$Value_Type")
?"- 106-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "SendTo", "$SendTo_Folder", "$Value_Type")
?"- 107-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Start Menu", "$StartMenu_Folder", "$Value_Type")
?"- 108-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Startup", "$Startup_Folder", "$Value_Type")
?"- 109-"+@time+"-"+$_debug_name+"- @error @serror"? WriteValue("$Folders_Key", "Templates", "$Templates_Folder", "$Value_Type")
?"- 110-"+@time+"-"+$_debug_name+"- @error @serror"? ;$ret = "$R1$R2$R3$R4$R5$R6$R7$R8$R9$R10$R11$R12$R13$R14$R15$R16"
?"- 111-"+@time+"-"+$_debug_name+"- @error @serror"? ;IF $ret <> "0000000000000000"
?"- 112-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?
?"- 113-"+@time+"-"+$_debug_name+"- @error @serror"? ; ? "Error updating $Folders_Key, return code: $Ret" ; <-----
?"- 114-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?
?"- 115-"+@time+"-"+$_debug_name+"- @error @serror"? ; ? "The regsitry security permissions within your user profile may be incorrect."
?"- 116-"+@time+"-"+$_debug_name+"- @error @serror"? ; ? "Please report this problem to a system administrator."
?"- 117-"+@time+"-"+$_debug_name+"- @error @serror"? ;ENDIF
?"- 118-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 119-"+@time+"-"+$_debug_name+"- @error @serror"?

?"------- end-"+@time+"-"+$_debug_name+"- @error @serror"
? "-"
? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/4.00e script ending"
IF (Val(substr(@kix,1,1)) >= 4)
IF (len(@scriptname) <> 0)
" ("+LCASE(@scriptname)+")"
ENDIF
ENDIF
? "-"
IF RedirectOutput("CON")
ENDIF
COLOR C+/N
?
? "Informative KIX "+@kix+":"+" debug info see "+CHR(34)+$_debug_file+CHR(34)
IF (Val(substr(@kix,1,1)) >= 4)
IF (len(@scriptname) <> 0)
" ("+LCASE(@scriptname)+")"
ENDIF
ENDIF
IF RedirectOutput($_debug_file)
ENDIF
;($begin)
;
; mon 29-sep-2003 01:24:19 (kix 4.20 vs 4.00e)
;
;Informative KIXSTRIP: no errors found (input=140 output=119 skip=21).
;
;Summary KIXSTRIP: block structures
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; - if:else:endif [1:0:1]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Informative KIXSTRIP: 1 block_structure found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: 2 labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 1 EXIT
;Informative KIXSTRIP: 2 GOSUB
;Informative KIXSTRIP: 2 RETURN
;
;($end)

The output of this version can be something like
code:
-monday 2003/09/29 01:24:33- kixtart 4.21/4.00e script starting (zx33)
-
-curdir: c:\my documents
-scriptdir: c:\my documents
-startdir: c:\windows
-
-userid: administrator/administrator
-user priv: guest
-version: inwin=2/dos=4.90/productsuite=0/producttype=Windows Me/csd=
-
-debug file: c:\temp\kixdebug.txt
-debug name: 20030929_012433.630_2095
-
----- start-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 1-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 2-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 3-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 4-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 5-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 6-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 7-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 8-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 9-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 10-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 11-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 12-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 13-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 14-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 15-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 16-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 17-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 18-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 19-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 20-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 21-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 22-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 23-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 24-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 25-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 26-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 27-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 28-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 29-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 30-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 31-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 32-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 33-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 34-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 35-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 36-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 37-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 38-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 39-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

cachedprofile = MCA
- 40-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

homedir =
- 41-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

logfile = logon.log
- 42-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

tempdir = E:\Temp\ADMINISTRATOR
- 43-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

shellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- 44-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

usershellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- 45-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

userapprun_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- 46-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

fiaapps = \FIAApps
- 47-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

tempfile = E:\Temp\ADMINISTRATOR\UsrLogon.tmp
- 48-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

- 49-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

appdata_folder = MCA\Application Data
- 50-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

appsrv_folder = MCA\Application Data\ICAClient
- 51-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

appsrv_src = D:\Software\Client
- 52-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

cache_folder = MCA\Temporary Internet Files
- 53-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

cookies_folder = MCA\Cookies
- 54-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

desktop_folder = MCA\Desktop
- 55-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

favorites_folder = MCA\Favorites
- 56-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

fonts_folder = \Fonts
- 57-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

history_folder = MCA\History
- 58-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

nethood_folder = MCA\NetHood
- 59-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

personal_folder = H:\
- 60-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

printhood_folder = MCA\PrintHood
- 61-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

programs_folder = MCA\Start Menu\Programs
- 62-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

recent_folder = MCA\Recent
- 63-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

sendto_folder = MCA\SendTo
- 64-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

startmenu_folder = MCA\Start Menu
- 65-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

startup_folder = MCA\Start Menu\Programs\Startup
- 66-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

templates_folder = Winword\Template
- 67-01:24:33-20030929_012433.630_2095 - 0 The operation completed successfully.

Please run second script and return the output of file %tmp%\kixdebug.txt to the board.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#45569 - 2003-10-06 02:09 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
Sorry, it took so long to respond to this, I had just about given up but decided to look one more to time to see is anyone had new ideas. Hope this helps.

The following is the results of the %TMP%\kixdebug.txt file.

code:
-monday 2003/10/06 07:02:26- kixtart 4.02/4.00e script starting
-
-curdir: c:\wtsrv\system32
-scriptdir:
-startdir:
-
-userid: operez/operez
-user priv: admin
-version: inwin=1/dos=4.0/productsuite=16/producttype=Windows NT Server/csd=Service Pack 6
-
-debug file: E:\Temp\operez\kixdebug.txt
-debug name: 20031006_070226.281_956
-
----- start-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 1-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 2-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 3-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 4-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 5-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 6-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 7-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 8-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 9-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 10-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 11-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 12-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 13-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 14-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 15-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 16-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 17-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 18-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 19-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 20-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 21-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 22-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 23-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 24-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 25-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 26-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 27-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 28-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 29-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 30-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 31-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 32-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 33-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 34-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 35-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 36-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 37-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 38-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 39-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

cachedprofile = C:\WTSRV\Profiles\operez
- 40-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

homedir = S:\
- 41-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

logfile = S:\logon.log
- 42-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

tempdir = E:\Temp\operez
- 43-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

shellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- 44-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

usershellfolders_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- 45-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

userapprun_key = HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- 46-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

fiaapps = \\NT-PDC\FIAApps
- 47-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

tempfile = E:\Temp\operez\UsrLogon.tmp
- 48-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 49-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

appdata_folder = C:\WTSRV\Profiles\operez\Application Data
- 50-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

appsrv_folder = C:\WTSRV\Profiles\operez\Application Data\ICAClient
- 51-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

appsrv_src = D:\Software\Client
- 52-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

cache_folder = C:\WTSRV\Profiles\operez\Temporary Internet Files
- 53-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

cookies_folder = C:\WTSRV\Profiles\operez\Cookies
- 54-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

desktop_folder = C:\WTSRV\Profiles\operez\Desktop
- 55-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

favorites_folder = C:\WTSRV\Profiles\operez\Favorites
- 56-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

fonts_folder = C:\WTSRV\Fonts
- 57-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

history_folder = C:\WTSRV\Profiles\operez\History
- 58-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

nethood_folder = C:\WTSRV\Profiles\operez\NetHood
- 59-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

personal_folder = H:\
- 60-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

printhood_folder = C:\WTSRV\Profiles\operez\PrintHood
- 61-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

programs_folder = C:\WTSRV\Profiles\operez\Start Menu\Programs
- 62-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

recent_folder = C:\WTSRV\Profiles\operez\Recent
- 63-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

sendto_folder = C:\WTSRV\Profiles\operez\SendTo
- 64-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

startmenu_folder = C:\WTSRV\Profiles\operez\Start Menu
- 65-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

startup_folder = C:\WTSRV\Profiles\operez\Start Menu\Programs\Startup
- 66-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

templates_folder = S:\Winword\Template
- 67-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 68-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 69-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 70-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 71-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 72-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 75-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 76-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 77-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 78-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 79-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

folders_key (shell folder) HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- 80-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 90-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 91-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 92-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 93-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 94-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 95-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 96-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 97-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 98-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 99-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 100-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 101-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 102-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 103-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 104-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 105-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 106-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 107-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 108-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 109-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 110-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 111-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 112-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 113-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 114-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 115-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 116-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 117-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 118-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 81-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 82-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 83-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 84-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 85-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

folders_key (user shell folder) HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- 86-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 90-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 91-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 92-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 93-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 94-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 95-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 96-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 97-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 98-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 99-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 100-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 101-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 102-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 103-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 104-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 105-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 106-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 107-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 108-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 109-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.
0
- 110-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 111-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 112-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 113-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 114-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 115-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 116-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 117-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 118-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.

- 87-07:02:26-20031006_070226.281_956 - 0 The operation completed successfully.



Top
#45570 - 2003-10-06 05:49 PM Re: Icons don't get copied
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

No problem at all. More important is, that some feedback has been read.
This evening we will analyse the results a little bit more in detail. First
impression is that there aren't problems with the registry modifications.

Some additional questions:
- with which rights you are running this script?
- where is the COPY part of your script, so we can see something is going wrong with
that part?

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#45571 - 2003-10-06 06:23 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
It doesn’t seem to matter whether I logon with a regular user ID or my Admin ID (my Admin ID has both Local Admin and Domain Admin rights), the results are the same.

code:
:AddCommonApps
;*************
;
; Copy Common apps to desktop and start menu
if "$Verbose" = "Yes"
? "Add common applications" + $NL
endif
;
; Add common program shportcuts to user's desktop
shell 'cmd /c xcopy "$FIAApps\Common\*.lnk" "$Desktop_Folder" /F'
;
; Add Start Menu\Programs\Common folder and add common program shortcuts
shell 'cmd /c xcopy "$FIAApps\Common\*.lnk" "$Programs_Folder" /F'
;
; Add Start Menu\Programs\Accessories folder and add accessory program shortcuts
shell 'cmd /c xcopy "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /F'
;
; Copy common startup programs to user's startup folder
shell 'cmd /c xcopy "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /F'
return
;


Top
#45572 - 2003-10-06 07:15 PM Re: Icons don't get copied
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Are you using RunLoginScriptsync=1 as your updates might not succeed because your profile is loaded after the copy commands are finished. See the FAQ Forum on 'events during startup' and 'keep login script visible'.
_________________________
There are two types of vessels, submarines and targets.

Top
#45573 - 2003-10-06 09:01 PM Re: Icons don't get copied
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We have change your code a little bit. Put run it and return the
output file %tmp%\kixdebug1.txt to the board.
We replace cmd with %comspec% which can solve your problem. cmd.com and command.com doesn't have same syntax for
the internal commands.
One of those problems can be the usage of log-filenames instead of 8.3-filenames.

code:
IF RedirectOutput("%tmp%\kixdebug1.txt")
ENDIF
;
:AddCommonApps
;*************
;
; Copy Common apps to desktop and start menu
if "$Verbose" = "Yes"
? "Add common applications"
endif
;
; Add common program shortcuts to user's desktop
$cmd='xcopy "$FIAApps\Common\*.lnk" "$Desktop_Folder" /F'
? "cmd (desktop_folder) "+$cmd
shell '%comspec% /c '+$cmd
;
; Add Start Menu\Programs\Common folder and add common program shortcuts
$cmd='xcopy "$FIAApps\Common\*.lnk" "$Programs_Folder" /F'
? "cmd (program_folder) "+$cmd
shell '%comspec% /c '+$cmd
;
; Add Start Menu\Programs\Accessories folder and add accessory program shortcuts
$cmd='xcopy "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /F'
? "cmd (accessories) "+$cmd
shell '%comspec% /c '+$cmd
;
; Copy common startup programs to user's startup folder
$cmd='xcopy "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /F'
? "cmd (startup) "+$cmd
shell '%comspec% /c '+$cmd
;
IF RedirectOutput("")
ENDIF
;
return

As alternative you can use following code. We are using intern kixtart
command COPY instead of external program XCOPY.
Please run it also and return the output %tmp%\kixdebug2.txt also to
the board.
code:
IF RedirectOutput("%tmp%\kixdebug2.txt")
ENDIF
;
:AddCommonApps
;*************
;
; Copy Common apps to desktop and start menu
if "$Verbose" = "Yes"
? "Add common applications"
endif
;
; Add common program shortcuts to user's desktop
? '=> COPY "$FIAApps\Common\*.lnk" "$Desktop_Folder" /H'
COPY "$FIAApps\Common\*.lnk" "$Desktop_Folder" /H
? "===> status: @error (@serror)"
;
; Add Start Menu\Programs\Common folder and add common program shortcuts
? '=> COPY "$FIAApps\Common\*.lnk" "$Programs_Folder" /H'
COPY "$FIAApps\Common\*.lnk" "$Programs_Folder" /H
? "===> status: @error (@serror)"
;
; Add Start Menu\Programs\Accessories folder and add accessory program shortcuts
? '=> COPY "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /H'
COPY "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /H
? "===> status: @error (@serror)"
;
; Copy common startup programs to user's startup folder
? '=> COPY "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /H'
COPY "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /H
? "===> status: @error (@serror)"
;
IF RedirectOutput("")
ENDIF
;
return

The RunLoginScriptsync=1 isn't important with your problem.
The only difference between this setting is:
quote:

you must wait before all logonscripts have been finished, or you will
see dynamically that your shortcuts are changing.

Another question: when you have run your script do you find those shortcuts somewheree
on your system? possible that the copy operation works, but the result isn't
what you are expecting.
greetings.

btw: +$nl isn't necessary.

[ 06. October 2003, 21:04: Message edited by: MCA ]
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#45574 - 2003-10-07 12:13 AM Re: Icons don't get copied
mole Offline
Getting the hang of it

Registered: 2003-01-01
Posts: 76
Loc: Indian Head, Maryland, USA
I've been watching this thread and have no experience setting up user environments with Citrix clients, but maybe since the script properly copies the icons when run from a command prompt after login and doesn't copy the icons run as the login script run at login, the icon copying process should be made into its own script and called from the main login script in such a way that it breaks out of the initial login environment and might inherit the environment established in the context of the user outside of and after login:

(Don't laugh, I've seen worse looking things actually work.)

code:
run '%COMSPEC% /c start {pathtokixexe}\kix32.exe {pathtokixscript}\copyicon.kix'

This would be placed near if not actually at the end point of the current Kix login script which is itself called from the *.cmd. If the above doesn't work, I'd give a shot with an additional %comspec% /c added after the start command. Analogous gyrations have proven to accomplish tricks with the environment on Win9x clients.

Hope the problem gets solved.

mole
_________________________
mole

Who is John Galt?

Top
#45575 - 2003-10-07 03:30 AM Re: Icons don't get copied
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
However, I'd still look into the login processing order. It is well possible that the profile get's loaded after the icons are copied, and thus overwrite it. That is why I recommended to use RunLoginScriptSync which will load the profile first, then process the login script. See also W2k/XP - Keep the Window visible on login? and Sequence of events during logon in the FAQ Forum!
_________________________
There are two types of vessels, submarines and targets.

Top
#45576 - 2003-10-07 03:44 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
At logon the kixdebug1.txt file does not get created and neither do the icons get copied, but at a command prompt the icons get copied and the following is the output from the kixdebug1.txt file:

code:
cmd (desktop_folder) xcopy "\\NT-PDC\FIAApps\Common\*.lnk" "C:\WTSRV\Profiles\operez\Desktop" /F
cmd (program_folder) xcopy "\\NT-PDC\FIAApps\Common\*.lnk" "C:\WTSRV\Profiles\operez\Start Menu\Programs" /F
cmd (accessories) xcopy "\\NT-PDC\FIAApps\Accessories\*.lnk" "C:\WTSRV\Profiles\operez\Start Menu\Programs\Accessories" /F
cmd (startup) xcopy "\\NT-PDC\FIAApps\Common\Startup" "C:\WTSRV\Profiles\operez\Start Menu\Programs\Startup" /F


Top
#45577 - 2003-10-07 03:59 PM Re: Icons don't get copied
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Did you run also the second script?
Did you find back anywhere those icons copied?
When you are running above XCOPY commands from a DOS, what do you see?

We have modify the first script. First it will open a DOS box so you can read possible
messages during the copy operation. Secondly it will wait for your key-press before
continuing, so you have enough time to read it.
See you know some error/warning messages?
code:
$=SETCONSOLE("maximize")
;
:AddCommonApps
;*************
;
; Copy Common apps to desktop and start menu
if "$Verbose" = "Yes"
? "Add common applications"
endif
;
; Add common program shortcuts to user's desktop
$cmd='xcopy "$FIAApps\Common\*.lnk" "$Desktop_Folder" /F'
? "cmd (desktop_folder) "+$cmd
shell '%comspec% /c '+$cmd
sleep 5
;
; Add Start Menu\Programs\Common folder and add common program shortcuts
$cmd='xcopy "$FIAApps\Common\*.lnk" "$Programs_Folder" /F'
? "cmd (program_folder) "+$cmd
shell '%comspec% /c '+$cmd
sleep 5
;
; Add Start Menu\Programs\Accessories folder and add accessory program shortcuts
$cmd='xcopy "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /F'
? "cmd (accessories) "+$cmd
shell '%comspec% /c '+$cmd
sleep 5
;
; Copy common startup programs to user's startup folder
$cmd='xcopy "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /F'
? "cmd (startup) "+$cmd
shell '%comspec% /c '+$cmd
sleep 5
;
? "Press any key to continue
GET $
return

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#45578 - 2003-10-07 04:00 PM Re: Icons don't get copied
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Silly question.. Wouldn't you be better served with under a GPO?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45579 - 2003-10-07 04:01 PM Re: Icons don't get copied
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
My bad, I had added a output redirect at the beginning of the script trying to debug the script and the script was writing to that file. Here are the results of the second script the output to kixdebug2.txt:

code:
=>   COPY "\\NT-PDC\FIAApps\Common\*.lnk" "C:\WTSRV\Profiles\operez\Desktop" /H
===> status: 0 (The operation completed successfully.)
=> COPY "\\NT-PDC\FIAApps\Common\*.lnk" "C:\WTSRV\Profiles\operez\Start Menu\Programs" /H
===> status: 0 (The operation completed successfully.)
=> COPY "\\NT-PDC\FIAApps\Accessories\*.lnk" "C:\WTSRV\Profiles\operez\Start Menu\Programs\Accessories" /H
===> status: 0 (The operation completed successfully.)
=> COPY "\\NT-PDC\FIAApps\Common\Startup" "C:\WTSRV\Profiles\operez\Start Menu\Programs\Startup" /H
===> status: 0 (The operation completed successfully.)

Again, no files are copied at logon, but from a command prompt the icons are copied.

Top
#45580 - 2003-10-07 04:04 PM Re: Icons don't get copied
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Can you do this by hand? Maybe add a Sleep statement to wait until the LNK files are copied to the desktop?

Run this from a command prompt -
COPY "\\NT-PDC\FIAApps\Common\*.lnk" "C:\WTSRV\Profiles\operez\Desktop"

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45581 - 2003-10-07 04:58 PM Re: Icons don't get copied
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Does anything from this discussion twig any thoughts ...

http://www.freelists.org/archives/thin/09-2002/msg00663.html

-Shawn

Top
Page 2 of 3 <123>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.074 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org