Not as nice as I hoped for but this oneliner can help out. Notice however that you can’t use * as a filter because the IN function starts selecting files in that case.
for %G in (.exe, .dll, .xyz) do forfiles -p "C:abc\del" -s -m *%G -d -70 -c "cmd /c echo @path"
Used this for reference.
More Related Contents:
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- How do you get the string length in a batch file?
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- Batch script: how to check for admin rights
- Setting a system environment variable from a Windows batch file?
- How to schedule a task to run when shutting down windows
- Windows Phone 7 (WP7) Change a button’s background color on click
- Show touch keyboard (TabTip.exe) in Windows 10 Anniversary edition
- Access to build environment variables from a groovy script in a Jenkins build step (Windows)
- Is there a better Windows Console Window? [closed]
- How to convert Windows end of line in Unix end of line (CR/LF to LF)
- How to run a program automatically as admin on Windows 7 at startup?
- How do I shutdown, restart, or log off Windows via a bat file?
- How do I create a shortcut via command-line in Windows?
- Windows equivalent to UNIX pwd
- How to automatically update an application installed with Inno Setup
- Command line tool to delete folder with a specified name recursively in Windows?
- How to get the sort order in Delphi as in Windows Explorer?
- Why doesn’t my Perl one-liner work on Windows?
- Windows CDROM Eject
- Does Windows have Inode Numbers like Linux?
- Why is ruby so much slower on windows?
- Why does starting a streaming query lead to “ExitCodeException exitCode=-1073741515”?
- My ffmpeg output always add extra 30s of silence at the end
- VB – Linking a DLL in implicit way
- What’s the fastest way to delete a large folder in Windows?
- Windows equivalent of OS X Keychain?
- Building with CMake, Ninja and Clang on Windows
- Run batch file in Windows Installer Commit