search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
How to create a timestamp in a batch (.bat) file?
Posted in Windows Server | No Comment | 3,141 views | 17/03/2009 21:38

You should use timestamps with some Microsoft installs like Microsoft SQL Server 2008. You can easily create a timestamp with a batch file.

1
2
3
4
5
6
@echo off
set date=%date:.=%
set timx=%time::=%
set time=%timx:,=%
set timestamp=%date%%time%
echo %timestamp%

Now you can use %timestamp% with your unattended SQL Server 2005 installation.



Leave a Reply