Discussion:
How can i drop "," from an enumerated Reg key
(too old to reply)
GazzaJagman
2008-12-01 19:41:01 UTC
Permalink
Please pardon my ignorance, I'm new to VBs and WMI.

I am running an audit script to see if our servers are built correctly. One
of my tasks wants me to list a server's Static / Persistent Routes to a CSV
file.
So far so good. I enumValues obtained from a reg key which I then
Object.Write to a CSV file. The out put is in the same format as the value
names are IP routes which have "," all over the place. How can i output these
IP routes with out the "," between each set of IPaddresses?
eg,
192.100.100.1,192.200.200.2,192.50.50.5,1

Regards,

Gareth Cooper
itekchandru
2008-12-02 05:19:31 UTC
Permalink
On Dec 2, 12:41 am, GazzaJagman
Post by GazzaJagman
Please pardon my ignorance, I'm new to VBs and WMI.
I am running an audit script to see if our servers are built correctly. One
of my tasks wants me to list a server's Static / Persistent Routes to a CSV
file.
So far so good. I enumValues obtained from a reg key which I then
Object.Write to a CSV file. The out put is in the same format as the value
names are IP routes which have "," all over the place. How can i output these
IP routes with out the "," between each set of IPaddresses?
eg,
192.100.100.1,192.200.200.2,192.50.50.5,1
Regards,
Gareth Cooper    
Write the output as text file( with new line for each ip address)
instead of CSV file.

Loading...