Search found 54 matches

by lazna
21 Oct 2023 04:52
Forum: DOS Batch Forum
Topic: .lnk shortcut - create programatically
Replies: 5
Views: 20352

.lnk shortcut - create programatically

As far as VBS is marked as obsolete (and will be removed from next windows version), looking for alternative way of shortcut creation from batch file other than VBS script. Found powershell oneliner powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$shortcut = New-Object -ComObject WScript...
by lazna
13 Aug 2023 05:28
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 58
Views: 118810

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

As BMP format know transparency, is it possible to make part of image transparent? I mean define specific area of image (and make it transparent) where cmd window content will be visible even if whole cmd windows is overlayed by image?
by lazna
25 Jul 2023 10:33
Forum: DOS Batch Forum
Topic: escaping powershell in batch loop
Replies: 1
Views: 2624

escaping powershell in batch loop

have following loop for /f "tokens=1-3 delims=- " %%a in (' powershell.exe -Command "Get-EventLog -ErrorAction SilentlyContinue -Newest 1 -LogName System -EntryType Error -Source Tcpip | ForEach-Object { \"$(Get-Date $_.TimeGenerated) - $($_.ReplacementStrings -join '#')\" }; Write-output ^$error[0]...
by lazna
14 Jul 2023 06:34
Forum: DOS Batch Forum
Topic: NetBazmek - Windows networking subsytem helper
Replies: 3
Views: 2204

Re: NetBazmek - Windows networking subsytem helper

Version 0.0.6 released.

Several bugfixes.
New funtions SNMP remote throughput and Traffic generator added
by lazna
13 Jul 2023 05:36
Forum: DOS Batch Forum
Topic: Cmdwiz - 54 operation cmd helper tool (now with Unicode)
Replies: 58
Views: 118810

Re: Cmdwiz - 54 operation cmd helper tool (now with Unicode)

Just test cmdwiz, and its just GREAT !! But facing strange behaviour. Command cmdwiz insertbmp "\utils\image.bmp" 50 50 & pause >NUL repeated multiple times by UP ARROW and ENTER keys in console window, randomly DO NOT perform display image. Mostly it display image and it remain on screen untill key...
by lazna
03 Jul 2023 10:51
Forum: DOS Batch Forum
Topic: How to escape comma in wmic?
Replies: 10
Views: 4751

Re: How to escape comma in wmic?

no it isn't Sorry for wrong word 'obsolette', wmic is deprecated They removed the warning in Windows 11, so it's fair to say that it also isn't deprecated. "The WMIC tool is deprecated in Windows 10, version 21H1 and the 21H1 General Availability Channel release of Windows Server. This tool is supe...
by lazna
03 Jul 2023 03:24
Forum: DOS Batch Forum
Topic: NetBazmek - Windows networking subsytem helper
Replies: 3
Views: 2204

Re: NetBazmek - Windows networking subsytem helper

miskox wrote:
30 Jun 2023 05:55
Nice work. I get some errors but this script is very useful.

(will check again and write down errors)

Saso
Thanks. As script dependent on physical network adapters and its drivers, any test in different environment is important.
by lazna
03 Jul 2023 03:02
Forum: DOS Batch Forum
Topic: How to escape comma in wmic?
Replies: 10
Views: 4751

Re: How to escape comma in wmic?

ShadowThief wrote:
02 Jul 2023 15:54
lazna wrote:
02 Jul 2023 12:45
just FYI: wmic is obsolette
no it isn't
Sorry for wrong word 'obsolette', wmic is deprecated
by lazna
02 Jul 2023 12:45
Forum: DOS Batch Forum
Topic: How to escape comma in wmic?
Replies: 10
Views: 4751

Re: How to escape comma in wmic?

just FYI: wmic is obsolette
by lazna
27 Jun 2023 13:25
Forum: DOS Batch Forum
Topic: NetBazmek - Windows networking subsytem helper
Replies: 3
Views: 2204

NetBazmek - Windows networking subsytem helper

Just released. Its a hybrid script, but main part is a Windows shell script.

https://bazmek.open-plc.org/

Comments are welcome

L.
by lazna
25 Jan 2023 15:54
Forum: DOS Batch Forum
Topic: windows shortcut breaking batch script
Replies: 0
Views: 34156

windows shortcut breaking batch script

Using windows shortcut CRTL+ALT+C for Connect (and CTRL+ALT+D for Disconnect) wifi network for long time, but now discovered it breaking batch script if this running in active window on keypress time. This probably ingnore ALT key and act in same way as CTRL+C. Trying to avoid such behaviour have re...
by lazna
01 Jan 2023 05:43
Forum: DOS Batch Forum
Topic: Bug in vt101 Alternate Screen Buffer?
Replies: 9
Views: 26901

Re: Bug in vt101 Alternate Screen Buffer?

Both scripts working on my 10.0.19045.2193
by lazna
23 Nov 2022 12:55
Forum: DOS Batch Forum
Topic: findstr default gateway
Replies: 6
Views: 3861

Re: findstr default gateway

Thanks all!

Finaly solved by

Code: Select all

netstat -rn | findstr /R "\<0.0.0.0"
, it look to me better than put space as a part of patterns.

BTW: Sorry unattential reading
by lazna
23 Nov 2022 11:50
Forum: DOS Batch Forum
Topic: findstr default gateway
Replies: 6
Views: 3861

Re: findstr default gateway

expect only three lines containing pattern, but got more lines netstat -rn | findstr /C:"0.0.0.0" 0.0.0.0 0.0.0.0 10.12.70.65 10.12.70.66 281 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.236 50 224.0.0.0 240.0.0.0 On-link 127.0.0.1 331 224.0.0.0 240.0.0.0 On-link 169.254.71.163 281 224.0.0.0 240.0.0.0 On-l...