I tend to use Goto :eof
Both options are described here: https://ss64.com/nt/call.html
Search found 177 matches
- 2022-Jul-17, 1:35 pm
- Forum: Windows CMD Shell
- Topic: "call exit" - Exit batch file from call subroutine
- Replies: 7
- Views: 6287
- 2022-Jul-03, 1:28 pm
- Forum: Windows PowerShell
- Topic: Data missing when Select-Object in use
- Replies: 5
- Views: 18637
Re: Data missing when Select-Object in use
Ah I see what you mean.
I think this is one of those annoying cases where the columns have a 'display name' to prettify the output.
To get the real property names you can select/filter on, you need to do:
I think this is one of those annoying cases where the columns have a 'display name' to prettify the output.
To get the real property names you can select/filter on, you need to do:
Code: Select all
Get-DnsClientCache | Format-List -Property * -Force
- 2022-Jul-03, 10:32 am
- Forum: Windows PowerShell
- Topic: Data missing when Select-Object in use
- Replies: 5
- Views: 18637
Re: Data missing when Select-Object in use
This is standard behaviour when you ask PowerShell for more data than will fit across the screen. Solutions: 1) Just make the window wide enough so it will fit. 2) Pipe the output to | format-table -auto (this may still truncate but it will try a bit harder to display everything). 3) Send the output...
- 2022-Jun-27, 4:40 pm
- Forum: Windows CMD Shell
- Topic: doskey /reinstall
- Replies: 1
- Views: 2401
Re: doskey /reinstall
Looks like that bug has been around for quite a while
a workaround is
via https://www.dostips.com/forum/viewtopic.php?f=3&t=5661
a workaround is
Code: Select all
rem Clear the command history
doskey /LISTSIZE=0
doskey /LISTSIZE=50
- 2022-Jun-26, 1:56 pm
- Forum: Windows CMD Shell
- Topic: variable character replace
- Replies: 2
- Views: 2158
Re: variable character replace
Try like this @echo off set _string=abc set _char=a call set _out=%%_string:%_char%=%% echo [%_out%] if %_string%==%_out% (echo Char %_char% not present) else (echo Char %_char% present) So in the CALL SET line, the outer %'s have to be doubled because we are using CALL, the _string variable doesn't...
- 2022-Jun-13, 2:17 pm
- Forum: Windows CMD Shell
- Topic: wmic diskdrive command invalid query
- Replies: 2
- Views: 2428
Re: wmic diskdrive command invalid query
instead of wmic diskdrive getName ...
try wmic diskdrive get Name ...
try wmic diskdrive get Name ...
- 2022-Apr-17, 9:25 am
- Forum: General Tech News, Notes and Queries
- Topic: Muting your mic doesn’t stop big tech from recording your audio
- Replies: 2
- Views: 15564
Muting your mic doesn’t stop big tech from recording your audio
Muting your mic reportedly doesn’t stop big tech from recording your audio https://thenextweb.com/news/muting-your-mic-doesnt-stop-big-tech-recording-your-audio They used runtime binary analysis tools to trace raw audio in popular video conferencing applications as the audio traveled from the app to...
- 2022-Apr-14, 11:16 am
- Forum: Windows CMD Shell
- Topic: How to differentiate between similar filename extensions?
- Replies: 6
- Views: 5092
Re: How to differentiate between similar filename extensions?
All of this makes me extremely hesitant to alter the way that Windows handles filenames on an existing system. Turning off 8.3 filename generation does not affect any pre-existing files, it simply means that all new files you generate will have long filenames only. So you can turn it off, copy the ...
- 2022-Apr-12, 5:12 pm
- Forum: Windows CMD Shell
- Topic: How to differentiate between similar filename extensions?
- Replies: 6
- Views: 5092
Re: How to differentiate between similar filename extensions?
Confirmed, if you turn off 8.3 generation using:
Then DIR *.jpe will not return the jpeg files.
Also 8.3 filename generation is turned off by default in all new (fresh install) Windows installations.
Code: Select all
FSUTIL.exe behavior set disable8dot3 1
Also 8.3 filename generation is turned off by default in all new (fresh install) Windows installations.
- 2022-Apr-09, 11:00 am
- Forum: Windows CMD Shell
- Topic: DELPROF2 no more developed
- Replies: 1
- Views: 2403
Re: DELPROF2 no more developed
Thanks for the heads up, I have added a PowerShell example to the page as another alternative. I'm assuming that will handle UWP apps.