Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,540 of 42,547    |
|    me at to All    |
|    Re: Moving batch files to a Windows-11 l    |
|    21 Jan 26 10:18:19    |
      From: my.address@is.invalid               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,              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca