Search found 8 matches

by lazna
2022-Jul-04, 7:08 am
Forum: Windows PowerShell
Topic: Data missing when Select-Object in use
Replies: 5
Views: 1376

Re: Data missing when Select-Object in use

Thats it! Thanks...
by lazna
2022-Jul-03, 12:13 pm
Forum: Windows PowerShell
Topic: Data missing when Select-Object in use
Replies: 5
Views: 1376

Re: Data missing when Select-Object in use

Interesting, it reformate data dependent as long the output will be. When number of properties are <=4 it format output as table, but when number of requested properties is >4 than output is formated each line, single pair: Name : Value But still some values missing in output of all eight properties...
by lazna
2022-Jul-03, 10:49 am
Forum: Windows PowerShell
Topic: Data missing when Select-Object in use
Replies: 5
Views: 1376

Re: Data missing when Select-Object in use

You probably not fully understand me. My question was not why screen lines are truncated, but why in first example missing some values (compate to second example in my first post)

BTW:

To prevent lines truncate using pipe output to

Code: Select all

Write-Host -width 999
by lazna
2022-Jul-03, 9:36 am
Forum: Windows PowerShell
Topic: Data missing when Select-Object in use
Replies: 5
Views: 1376

Data missing when Select-Object in use

Why some data missing in output via Select-Object powershell "Get-DnsClientCache -Entry *whitehouse.org | select-object -property Entry,RecordName,RecordType,Status,Selection,TimeToLive,DataLenght,Data" Entry : whitehouse.org RecordName : RecordType : Status : 0 Selection : TimeToLive : 88...
by lazna
2022-Jun-27, 1:13 pm
Forum: Windows CMD Shell
Topic: doskey /reinstall
Replies: 1
Views: 438

doskey /reinstall

%subj% terminates (crash) cmd window, instead of clear command history buffer in Win10 19044 / 64bit. Anyone have this experince? Is there any other way to clear command history (e.g. powershell ??)
by lazna
2022-Jun-27, 7:09 am
Forum: Windows CMD Shell
Topic: variable character replace
Replies: 2
Views: 433

Re: variable character replace

thanks, it work as expected.
by lazna
2022-Jun-26, 9:16 am
Forum: Windows CMD Shell
Topic: variable character replace
Replies: 2
Views: 433

variable character replace

Need to test character presence in a string, but have no luck. What am I doing wrong?

Code: Select all

set string=abc
set char=a
call set "out=%%%string%:%char%=%%"
if %string%==%out% (echo Char %char% not present) else (echo Char %char% present)
by lazna
2022-Jun-25, 8:55 am
Forum: Windows CMD Shell
Topic: WINGET is online and working
Replies: 1
Views: 608

Re: WINGET is online and working

Interesting, thanks. Read a bit about, but is wide topic. As I am a creator of redistributable batch script included some supporting binaries and HTA help file. Now its downloadable in privat network as a single zip file, install is a manual job (open archive, choose target dir and decompress includ...