I've opened the files I want to diff using the following command:C:\temp\robocopyTasks>vim -c edit ++enc=ucs-2le -d C:\temp\robocopyTasks\acl\tasks_temp.txt C:\temp\robocopyTasks\acl\tasks_win.txtBut the file encoding is only set on the first file that is opened, and not on the second one; is there any way to do this from the command line?  
How to set both files to the encoding in vim diff from command line?
command line;vimdiff;options;encoding
The edit ++enc=ucs-2le [filename] only applies to the current file; when multiple are passed on the command-line, that's the last opened one. You could open the other with :diffsplit ++enc=ucs-2le file2, but in this case, it's shorter to augment the 'fileencodings' option:vim --cmd set fileencodings^=ucs-2le -d icacls.txt icacls2.txtThis allows you to keep the -d argument for diff mode, and avoids duplication of the encoding name.