Veritas-bu

[Veritas-bu] Windows post-processing script query

2004-03-22 11:30:04
Subject: [Veritas-bu] Windows post-processing script query
From: fmilton AT deloitte.co DOT uk (Milton, Fergus (UK - Bath))
Date: Mon, 22 Mar 2004 16:30:04 -0000
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4102A.EE786AB7
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
My background is Unix and I'm struggling with trying to put together a =
post backup script file for one of my windows clients.
The windows box runs a SAP backup utility which drops a directory (with =
an automatically generated name) of backup files onto our SAN, and I =
then want a post-processing script to delete the directory if the backup =
to tape worked okay.
What has got me foxed is trying to use wildcards in a .bat file to =
handle the deletion, as the ? single character wildcard I'm used to on =
Unix doesn't seem to work on Windows 2000 server.

On Unix it would be dead easy to script the deletion of any directories =
with 6 character names, but I can't find a way to do it on Windows and =
I'd appreciate any suggestions as to things I could consider. I browsed =
through some of the stuff in the Windows Resource Kit, but only Perl =
looked of interest, and I'm not allowed to install that :=AC(

Thanks for any advice or pointers.
Fergus

Fergus Milton   Deloitte (consulting) Limited
20 Manvers Street.  Bath.  BA1 1PX
Tel: +44 (0) 1225 739300
Direct Dial: +44 (0) 1225 739250
Mobile: +44 (0) 7775 711450
fmilton AT deloitte.co DOT uk
www.deloitte.co.uk=20
 =20
IMPORTANT NOTICE=20
If you have received this e-mail in error or wish to read our e-mail =
disclaimer statement and monitoring policy, please refer to the =
statement below or contact the sender.=20
This communication is from Deloitte MCS Limited whose registered office =
is at Hill House, 1 Little New Street, London EC4A 3TR, United Kingdom.  =
Registered in England No 3311052.  =20
This communication and any attachments contain information which is =
confidential and may also be privileged.  It is for the exclusive use of =
the intended recipient(s).  If you are not the intended recipient(s) =
please note that any form of disclosure, distribution, copying or use of =
this communication or the information in it or in any attachments is =
strictly prohibited and may be unlawful.  If you have received this =
communication in error, please return it with the title "received in =
error" to IT.SECURITY.UK AT deloitte.co DOT uk then delete the email and =
destroy any copies of it.=20
E-mail communications cannot be guaranteed to be secure or error free, =
as information could be intercepted, corrupted, amended, lost, =
destroyed, arrive late or incomplete, or contain viruses.  We do not =
accept liability for any such matters or their consequences.  Anyone who =
communicates with us by e-mail is taken to accept the risks in doing so. =

When addressed to our clients, any opinions or advice contained in this =
e-mail and any attachments are subject to the terms and conditions =
expressed in the governing Deloitte MCS Limited client engagement =
letter.=20
Opinions, conclusions and other information in this e-mail and any =
attachments which do not relate to the official business of the firm are =
neither given nor endorsed by it.=20

------_=_NextPart_001_01C4102A.EE786AB7
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML xmlns:eXclaimer=3D"http://www.exclaimer.co.uk";>
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3DUTF-16">
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUTF-16">
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6487.1">
<TITLE>Windows post-processing script query</TITLE>
</HEAD><BODY ><DIV>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">My background is Unix and I'm =
struggling with trying to put together a post backup script file for one =
of my windows clients.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The windows box runs a SAP backup =
utility which drops a directory (with an automatically generated name) =
of backup files onto our SAN, and I then want a post-processing script =
to delete the directory if the backup to tape worked okay.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">What has got me foxed is trying to use =
wildcards in a .bat file to handle the deletion, as the ? single =
character wildcard I'm used to on Unix doesn't seem to work on Windows =
2000 server.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">On Unix it would be dead easy to script =
the deletion of any directories with 6 character names, but I can't find =
a way to do it on Windows and I'd appreciate any suggestions as to =
things I could consider. I browsed through some of the stuff in the =
Windows Resource Kit, but only Perl looked of interest, and I'm not =
allowed to install that :=AC(</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks for any advice or =
pointers.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Fergus</FONT>
</P>

<P><B><FONT SIZE=3D2 FACE=3D"Arial">Fergus Milton</FONT></B><FONT =
SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; Deloitte (consulting) =
Limited</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">20 Manvers Street.&nbsp; Bath.&nbsp; =
BA1 1PX</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Tel: +44 (0) 1225 739300</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Direct Dial: +44 (0) 1225 =
739250</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Mobile: +44 (0) 7775 711450</FONT>

<BR><A HREF=3D"mailto:fmilton AT deloitte.co DOT uk"><U><FONT COLOR=3D"#0000FF" 
=
SIZE=3D2 FACE=3D"Arial">fmilton AT deloitte.co DOT uk</FONT></U></A>

<BR><A HREF=3D"http://www.deloitte.co.uk";><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">www.deloitte.co.uk</FONT></U></A>
</P>
<BR>

</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1"><STRONG>IMPORTANT =
NOTICE</STRONG></FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">If you have received =
this e-mail in error or wish to read our e-mail disclaimer statement and =
monitoring policy, please refer to the statement below or contact the =
sender.</FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">This communication is =
from Deloitte MCS Limited whose registered office is at Hill House, 1 =
Little New Street, London EC4A 3TR, United Kingdom.&nbsp; Registered in =
England No 3311052.&nbsp; </FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">This communication and =
any attachments contain information which is confidential and may also =
be privileged.&nbsp; It is for the exclusive use of the intended =
recipient(s).&nbsp; If you are not the intended recipient(s) please note =
that any form of disclosure, distribution, copying or use of this =
communication or the information in it or in any attachments is strictly =
prohibited and may be unlawful.&nbsp; If you have received this =
communication in error, please return it with the title "received in =
error" to </FONT><A HREF=3D"mailto:IT.SECURITY.UK AT deloitte.co DOT uk"><FONT =
FACE=3D"Verdana" COLOR=3D"gray" =
SIZE=3D"1">IT.SECURITY.UK AT deloitte.co DOT uk</FONT></A><FONT =
FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1"> then delete the email and =
destroy any copies of it.</FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">E-mail communications =
cannot be guaranteed to be secure or error free, as information could be =
intercepted, corrupted, amended, lost, destroyed, arrive late or =
incomplete, or contain viruses.&nbsp; We do not accept liability for any =
such matters or their consequences.&nbsp; Anyone who communicates with =
us by e-mail is taken to accept the risks in doing so.</FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">When addressed to our =
clients, any opinions or advice contained in this e-mail and any =
attachments are subject to the terms and conditions expressed in the =
governing Deloitte MCS Limited client engagement letter.</FONT>
</DIV>
<DIV>
<FONT FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1">Opinions, conclusions =
and other information in this e-mail and any attachments which do not =
relate to the official business of the firm are neither given nor =
endorsed by it.</FONT>
</DIV></BODY></HTML>

------_=_NextPart_001_01C4102A.EE786AB7--

<Prev in Thread] Current Thread [Next in Thread>