Wrox Programmer Forums
|
Need help with your homework? Need help with a homework question on any programming language? Post questions and help here, not in the language topic forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Need help with your homework? section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 19th, 2006, 04:25 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sagato
Default Add Date in Catalog Backup Script

Good day;

I have a file batch script that did a work partner who has gone away; I need to place as etiquette the date in which it is executed to take a better control, I am a beginner in this, I´m taking reading on this programming; I have tried it to place the value %Date% but it does not work. Could someone help? Thank you.

C:\WINNT\system32\ntbackup.exe backup "@C:\JobBKP\DIFSRV02-MR.bks" /n "DIF BKP SRV02-MR" /d "DIF BKP SRV02-MR" /n "DIF BKP SRV02-MR" /v:no /r:no /rs:no /hc:on /m differential /j "DIFBKPSRV02-MR" /l:s /p "DLT"

The name of the catalogue I suppose that it defines it "/n" and shows it in the reports of ntbackup.

I have tried forming in order that the catalogue stays of the following form:

DIF BKP SRV02-MR-20060912

But I have not had success. Could you help me please? Thanks!

I have tried forming in order that the catalogue stays of the following form:

DIF BKP SRV02-MR-20060912

But I have not had success. I continue browsing google.com for batch commands by adding date to catalogue ntbackup, I looking for the way to solve this need, And I do not find it, someone could help with some track? Thanks!

Cordial regards


Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Date to File Using Cmd ecom Other Programming Languages 1 November 13th, 2007 05:16 PM
Create backup folder & also backup files miracles Excel VBA 0 April 16th, 2007 02:28 AM
Add an hour to a date (solution) g000we Classic ASP Basics 1 July 26th, 2006 06:24 AM
How to add client-side script to an ASP button BrianWren VB.NET 1 March 30th, 2005 05:27 PM
sql server database backup by script mateenmohd SQL Server 2000 4 July 6th, 2004 12:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.