In Windows 7 command prompt, I´d like to list all files of a folder which name does not start with abc. I have tried:
abc
forfiles /P C:\\myFolder\\
An alternative, in case of using a xcopy command instead of echo is using the option /exclude. For instance:
xcopy
echo
/exclude
forfiles /P C:\myFolder\ /M ^[abc]* /S /C "CMD /C xcopy @path %myDestinationFolder% /exclude:abc*"
Also, if you´re using PowerShell, another option is the operator -match.
-match