Search : in
By :

Copy a txt file, rename it with today's date.

meikgeik, on Nov 4, 2009 6:56:17 pm GMT 
 Report this message to moderators

Hello,

I couldn't find anything on this, maybe someone here can help! :)

I have a file named callog template.txt I open every day, and I have to save it as callog 11-04.txt (11-04 is today's date in this example. The filename always needs to be appended with the date.)

What I typically do is I open the callog template file, go to save as, scroll through a huge directory to find the last day i saved a file (the last day i worked), and click it to populate that name into the save field, then edit the date to be today's date. I would like to find a way to make a script to do this, but I'm getting a bit confused, and I can't seem to make anything work. Is this a lost cause?

Basically what I was thinking is having a script that will copy the callog template.txt, and rename it to callog xx-xx.txt (xx-xx would be filled by the date), and then open the dated file.

I would like the format of the date to stay the same, but it could change if necessary.

Thanks in advance for any help! :)

Configuration: Windows XP
Firefox 3.5.4

Best answers for « Copy a txt file, rename it with today's date. » in :
Moving or copying a file with your right mouse button ShowMoving or copying a file with your right mouse button Command for right mouse button Create a file in the registry Set up of the file in the registry Command for right mouse button To move or copy your document and file to another...
Renaming multiple files in batch ShowRenaming multiple files in batch Native features Using a third-party program Renaming a large number of files can quickly become tedious. Fortunately, there are tools to automate this task in many cases: Native features On Windows...
Writing in batch in text file ShowWriting in batch in text file To write in a file text, you just have to use a redirect: echo text > output_file.txt To write in an existing file: echo " Write at the end of the file ">> output_file.txt
Download File Renamer Turbo ShowDescription The application is designed by Kristanix Software. Simple and easy to use; it has been awarded from several popular places. It offers an intuitive interface for its users. File Renamer Turbo is a tool that allows you to rename all your...
Download File Renamer Basic ShowDo not try any more to rename manually all your files in mass after data transfer. File Renamer BASIC is a powerful utility to rename folders, files, films, images, etc… In fact, you can easily rename folders even the entire subfolders of image or...
Download EF Multi File Renamer ShowEF Multi File Renamer is a versatile tool that lets you rename multiple files or folders (including subdirectories) and all this in one step. You can define your own rules of renaming or use the rules already predefined. Advantage Complex tasks...
Partition - Partitioning a hard drive ShowWhat is a partition? The partitioning of a hard drive occurs after the drive has been physically formatted but before it is logically formatted. It involves creating areas on the disk where data will not be mixed. It can be used, for example, to...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...