locked
Batch Command Filename Date RRS feed

  • Question

  • I am not sure I am in the right forum but here goes. I am trying to get the syntax for adding a date to a filename in a Batch file. I know the command looks like:

    for /f "tokens=1,2,3 delims=- " %%i in ('echo %DATE%') do (set BACKUP=%%k%%j%%i)

    but that's gibbrish to me I a little slow, I need a syntax layout so I can tell what I'm coding in case I want to alter it.

    Any help would be appreciated. IF this is the wrong forum could someone point me to the correct forum.
    Thursday, May 31, 2007 5:42 PM

All replies

  • I dont know the exact solution to this m8. But i can point you to the right place where you can get better answers fast.

    Technical Queries
    Posts Related to technical/ coding / programming related issues

    Sunday, June 3, 2007 2:28 PM