💻 Software
Windows command-line: create a file with the current date in its name
Fresh7 days ago
Mar 15, 2026125694 viewsConfidence Score0%
0%
Problem
I'm trying to create a zip file from a batch script. I need it to be named like archive_.zip Unfortunately, this doesn't work on systems with the date formatted like y/m/d because of the slashes: The variable expands to something like I have access to the gnuwin32 package, so I could use, say, to r…
Error Output
zip some_options "archive_%DATE%.zip"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Windows command-line: create a file with the current date in its name
Low Risk
You can replace symbols in variables by using :
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix