[ ]
Thanks for the reply Mark.
The key is HKLM\Software\Citrix\ICA Client\ --> ClientName and
the workstations are the infamous Windows 95 with a few Windows
98s.
I am not sure if these machines have reg.exe on them. If it is
not a default in Win 95, then probably not. I understand that
BAT scripting is considerably different than vbScripting, but is
there a way to explicitly say, "Give me the value at
HKLM\Software\Citrix\ICA Client\ --> ClientName"?
I plan to setup a BAT file accessible on the network for each
person to run and then format the output in the COMMAND window
with a PAUSE at the end so they can write it down.
COMPUTERNAME - Computer1
CITRIX CLIENT NAME - CitrixClientName1
There is no system provided %COMPUTERNAME% in W95, so that is out.
Citrix "name" used to be (long time) stored in WFCNAME.INI, but I
suppose it is now a registry entry.
Ultimately, I would like to handle a likely NULL value or
document what it will look like. I plan to do this with a,
hopefully simple, IF EXIST.
[ ]
Okay. It's been a long time since I've used Windows 95 (really
long <G>), but I can give you some ideas perhaps, even though this
group deals primarily with CMD.EXE on NTx systems.
Use regedit.exe to Export the Keys in question. If you are dealing
with string (REG_SZ) data this should not be too bad.
regedit.exe /x /a "<Drive:>\Directoy\FileName.reg" "KeyPath"
(You will need to confirm those switches exist in W95)
The other registry paths you probably want (confirm it) are:
(watch linewrap)
HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName
\ComputerName
"Computername"=
and possibly
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP
"Computername"=
With command.com's limited facility for parsing, I'm not certain
what you can do other than filtering out the correct line using
FIND. Then perhaps redirect output to a file?
Hope that helps some.