Have to run - dishes to wash, shower to take, TV show to watch, whiskey (Irish hence spelling) to pour into shot glass - xcopy only allows 1 filespec at a time - suggested solutions
1. have 1 xcopy command for each filetype
xcopy sourcefolder\*.jpg destinationfolder /switches
xcopy sourcefolder\*.doc destinationfolder /switches
etc
[EDIT - I see this has been covered]
2. use the FOR command to parse a list of filetypes and substitute each one in turn into the command
for %%T in (jpg png) do xcopy "s:\test\pixcopy\*.%%T" "s:\test\pixcopy2" /Y
Note longer form of FOR with brackets
for %%T in (jpg png) do (
xcopy "s:\test\pixcopy\*.%%T" "s:\test\pixcopy2" /Y
)