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