Veritas-bu

Re: [Veritas-bu] Silent install script.

2008-04-21 10:03:31
Subject: Re: [Veritas-bu] Silent install script.
From: "Tharp, Trey" <Trey.Tharp AT allstate DOT com>
To: "Barber, Layne Mr CTR US DISA GS4M2" <layne.barber.ctr AT csd.disa DOT mil>, <Veritas-bu AT mailman.eng.auburn DOT edu>
Date: Mon, 21 Apr 2008 08:34:28 -0500
There's no way to do this in CMD/BATCH scripting that I am aware of. As a result, I created a .VBS and used LCase to turn the variable into lower case characters. Someone else on this list might know of a way to do it within CMB/BATCH by possibly calling an external command or something, but the .VBS was pretty quick to implement.
 
-Trey


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Barber, Layne Mr CTR US DISA GS4M2
Sent: Wednesday, April 16, 2008 9:43 AM
To: Veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Silent install script.

Hi all!

I have modified the silentinstall.cmd script for the NBU 6.0 Win32 client for our windows admins to use to upgrade their clients. I am having a slight issue however.

I modified the SET CLIENT= to be similar to:

SET CLIENT=%COMPUTERNAME%.my.domain.com

The problem is that windows returns %COMPUTERNAME% in UPPER CASE, so this then sets the client name to CLIENT.my.domain.com and the client is already defined in NBU as client.my.domain.com. This causes issues (as I'm sure you are all aware), the client cannot browse their backups to do a restore, but if they change it to the lower case name it works.

Is there any way to convert this within the script to lower case, or is there some other environment variable in windows (2k, 2k3,XP) that will return the client name in lowercase?

I'm open to any suggestions.

Thank You,
 
Layne Barber
MCSE, Master-CNE, CompTIA A+
Systems Analyst II
Unisys Corporation
DISA Montgomery

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>