try something like this:
System.Diagnostics.Process.Start ("XCOPY.EXE", "/E /I /Y " + filename + " " + pfadauswahl + "Backup\\" + dt.ToString("yyyy-MM-dd") + "\\UserData\\" + File_Name + "* ");
with a star at the end of the line, I got rid of the question, be it a file or a directory, since you did not specify anything in the way you want to use it ... here is the solution for C #
incubuzz1978
source share