Search : in
By :

How to use current date in batch file

Last answer on May 6, 2009 3:46:31 am BST Chintal, on Oct 30, 2008 3:46:25 am GMT 
 Report this message to moderators

Hello,

I want to use current date in dos batch file.
I want to zip some file with the file name of current date using batch file.

For ex. today is 30/10/2008 then file name shoukd be 30102008.zip

please help me asap.

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « how to use current date in batch file » in :
Batch file – Get Filenames & Timestamps ShowBatch file – Get Filenames & Timestamps Issue Solution Note Issue Can anyone help me create a batch file that will display all the files, subfolders and files under subfolders of folder with both date created and date modified then...
Clearing the cache thumbnails ShowClearing the cache thumbnails Using a batch file Manual When launching a folder with videos or images, thumbnails are stored under the explorer of Windows Vista in the file type thumbcache_xxx.db found under Users \ [Username] \...
Batch file ShowBatch file Settings File Creation DOS is integrated in windows which allow to exploit functionality and command sequence in a script. A batch file is a text file which contains command to be read by DOS. This file can be launched...
Download Advanced Batch PDF Splitter ShowPDF Format is a reliable format to keep your documents. Most of the time, you convert several PDF documents at once or extract specific pages. To execute this process quickly, you can use Advanced Batch PDF Splitter. This program offers three...
Download FileUtilsCM ShowTo improve the functionalities of Finder, nothing simpler, use FileUtilsCM! FileUtilsCM is a batch of several utilities for Finder, it allows: - to refresh the posting of an object in Finder - to modify the modification or creation dates a file -...
FTP protocol (File Transfer Protocol) ShowIntroduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from 1971 when a file transfer system (described in RFC141) between MIT machines...
Environment variables ShowEnvironment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may...

1

fantafan, on Oct 30, 2008 10:50:33 am GMT

Hey there,

here is a link which might help you in what you are in search of :

http://www.computerhope.com/...

Reply to fantafan

2

Siven, on Feb 17, 2009 6:19:44 am GMT

Hello,
You can use spool format like below.

select 'spool D:\oracle\Scripts\EXECPLAN_REPORT\execplanview'||sysdate from dual;

If you are creating any thing for your database related activity.

Thanks
Siven Mishra

Reply to Siven

3

 Gowtham, on May 6, 2009 3:46:31 am BST

Hi,

I'm would like to export a registry hive on daily basis and store it in a folder. It should contain the files exported since last 7 days. I now want to append the exported date to the filename. So each file would be in the format 'XYZ_backup_06092009.reg'. I have tried various commands to make this possible, but none seem to solve the cause. Can you suggest something for this? Anything older than 7 days has to be deleted, i think this can be possible as well.


thanks,
Gowtham

Reply to Gowtham