Hi,

if a file in a folder exists i want to copy all files from an folder
to another folder. In the folder where i want to copy from the Username ist part of
the foldername.

Is this the right syntax ?
 Code:
$Desktop_Loc = '%USERPROFILE%\Desktop

IF EXIST "\\serv01\home\"+@USERID+"\windows\migration.txt" - homedrive of the user
IF EXIST "\\serv01\e$\anwprofl\tsp_"+@USERID+"" - profile-path of the user
copy "\\serv01\e$\anwprofl\tsp_"+@USERID+"\*.*" "$Desktop_Loc\*.*" /c /s
ENDIF
ENDIF

It would be nice, if you answer me, because i do not work all days with kix.

Kind Regards

Christian


Edited by Mart (2012-10-04 11:17 PM)
Edit Reason: Please use code tags when posting code.