Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

BgInfo : Is there a way to avoid auto-indentation?

$
0
0
Author: someone
Subject: Is there a way to avoid auto-indentation?
Posted: 29 July 2013 at 2:16pm

Hi,

Today I took some time to browse this forum and put together a WMI/VBscript to customize the network information displayed by means of a custom field. (A big thank you to all contributors that helped enabling me!)

I then noticed a behaviour of BgInfo that messes up the output:
It seems to auto-indent every line of a field but the first.

That makes my output look like this:

OS Version:           Windows 7

Service Pack:         Service Pack 1

-----------------------------------------------------------------

Network Interface:    Intel(R) 82577LM Gigabit Network Connection
MAC Address:               ############
Connection Speed:          ############
IP Address:                ############
Subnet:                    ############
Gateway:                   ############
DNS Server:                ############
DHCP Server:               ############
Lease obtained:            ############
Lease expires:             ############
-----------------------------------------------------------------


I would like every line to start on the left border:

OS Version:           Windows 7

Service Pack:         Service Pack 1

-----------------------------------------------------------------

Network Interface:    Intel(R) 82577LM Gigabit Network Connection

MAC Address:          ############

Connection Speed:     ############


When writing the information to a RTF file it becomes obvious: Usually lines end with \par (aka hard line break) while the lines in my custom field break with a \line (aka soft line break) which , just guessing, BgInfo outputs to the screen indented.

I already tried things like adding a vbCRLF to each Echo statement but that only gives me an additional (most likely indented Wink) empty line. Is there any way to change this behaviour (in BgInfo or in VBS)?

TIA!

Cheers,
  someone

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>