Jump to content

s2nrbald

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About s2nrbald

Profile Information

  • OS
    none specified

s2nrbald's Achievements

0

Reputation

  1. Thank you for your support. Now a new question. How do I get your input into the form required? For my previous code mentioned above, I saved this file as backup.bat. I then have a shortcut to this on my desktop. When I drag a file to the shortcut, it automatically adds a copy of the file on the desktop with today's date added. In this new example I would like to do something similar (add a shortcut to this new .bat file, drag some file to it, and then let it create a copy of it with the last modified date appended.) Taking it one step further, it would be nice if it also could just rename the file, without even making a copy.
  2. Hello, I have a batch file which copies a file and appends today's date. I would like to do the same, but append the last modified date. Can someone help? Here is my existing code to append today's date: @echo off set today=%date:~6,4%-%date:~3,2%-%date:~0,2% :loop copy %1 "%~dpn1_%today%%~x1" if .%2==. goto end shift goto loop :end
×
×
  • Create New...