Groups | Search | Server Info | Login | Register


Groups > alt.msdos.batch > #6375

Re: Moving batch files to a Windows-11 laptop.

From me at <my.address@is.invalid>
Newsgroups alt.msdos.batch
Subject Re: Moving batch files to a Windows-11 laptop.
Date 2026-01-21 10:18 +0000
Organization which
Message-ID <10kq95b$kq1$1@reader2.panix.com> (permalink)
References <10klfbk$mk3$1@reader2.panix.com> <XnsB3D9857CF5F73nilch1@wheedledeedle.moc> <10ko4tp$iv4$1@reader2.panix.com> <10ko6k1$1aa4h$1@dont-email.me>

Show all headers | View raw


 Good morning, 

   set datetime=%date%%time%
   copy "%1" "%~dpn1-%datetime%%~x1"


01/21  2:08 C:\tmp>batch aaa.txt

01/21  2:08 C:\tmp>set datetime=01/21/26 2:08:16.24

01/21  2:08 C:\tmp>copy "aaa.txt" "C:\tmp\aaa-01/21/26 2:08:16.24.txt"
The filename, directory name, or volume label syntax is incorrect.
        0 file(s) copied.


Date is backwards, should be 20260121 
Slashes are causing it to fail 
Need white space : . to be replaced with a - 

 Thanks, 


Back to alt.msdos.batch | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-01-19 14:33 +0000
  Re: Moving batch files to a Windows-11 laptop. Nil <rednoise9@rednoise9.invalid> - 2026-01-19 13:07 -0500
    Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-01-20 14:53 +0000
      Re: Moving batch files to a Windows-11 laptop. Herbert Kleebauer <klee@unibwm.de> - 2026-01-20 16:22 +0100
        Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-01-21 10:18 +0000
          Re: Moving batch files to a Windows-11 laptop. Herbert Kleebauer <klee@unibwm.de> - 2026-01-21 13:19 +0100
            Re: Moving batch files to a Windows-11 laptop. "Kerr-Mudd, John" <admin@127.0.0.1> - 2026-01-21 17:21 +0000
            Re: Moving batch files to a Windows-11 laptop. me at <my.address@is.invalid> - 2026-01-22 14:21 +0000
      Re: Moving batch files to a Windows-11 laptop. Robert Roland <fake@ddress.no> - 2026-02-02 08:48 +0100

csiph-web