💻 Software
Windows Batch Scripting: Newest File Matching a Pattern
Fresh5 days ago
Mar 15, 202615810 viewsConfidence Score0%
0%
Problem
This would be lightning quick in linux, but I'm not familiar enough with windows flavour of batch scripting. Basically I want to look for a series of files matching a certain wildcard, and get the one with the most recent modified date. I've gotten as far as: But I'm not sure what manner of compari…
Error Output
for %%X in (*.exe) do ( REM Do stuff.... )
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Windows Batch Scripting: Newest File Matching a Pattern
Low Risk
Ah, found it:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix