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
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
|