Question : How to  append DateTime to a  Filename  in DOS

Hi,

I try to take  backup of some configuration files of Oracle with DOS commands with the script below ;

copy d:\app\Administrator\product\11.1.0\db_1\NETWORK\ADMIN\tnsnames.ora  d:\backup\backup_conf\tns_%date%.ora


As it' s understood from the script, the script copies tnsnames.ora file  adding date at the end of the filename. I also tried to add the current time but it  didn' t work.

How is time added at the end of the filename ?

 

Answer : How to  append DateTime to a  Filename  in DOS

Try
1:
2:
final String RE = "\\d{6}-?\\d{4}";
boolean valid = s.matches(RE);
Random Solutions  
 
programming4us programming4us