PC Review


Reply
Thread Tools Rate Thread

How can auto generate backup file name?

 
 
szeleungc@gmail.com
Guest
Posts: n/a
 
      30th Apr 2006
How can auto generate backup file name,when Using win2003's backup
tools?
for example: YYYY_MM_DD

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      30th Apr 2006

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can auto generate backup file name,when Using win2003's backup
> tools?
> for example: YYYY_MM_DD
>


In my time zone this works well:
set DateLabel=%date:~10,4%_%date:~7,2%_%date:~4,2%
ntbackup /.... /j %dateLabel%

You need to adjust x, y and z to work for your own time zone
by running this command from a Command Prompt:
echo DateLabel=%date:~x,4%_%date:~y,2%_%date:~z,2%


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Generate File Name with Field Content... Chris Smith Microsoft Access Macros 1 3rd Dec 2008 10:38 PM
How do I turn off file auto backup =?Utf-8?B?cHVycnJmZWN0?= Microsoft Word Document Management 3 2nd Oct 2008 10:36 PM
how to auto generate an excel format file contains formula using C =?Utf-8?B?Q2VsaXU=?= Microsoft Excel Programming 0 4th Mar 2007 04:34 PM
Auto generate file number =?Utf-8?B?U29ueWE=?= Microsoft Word Document Management 2 13th Apr 2004 11:31 AM
Why UserControl won't auto generate a .Resources file? yongwei Microsoft Dot NET 0 6th Jan 2004 08:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:55 PM.