Search found 81 matches

by Simon Sheppard
2022-Jun-27, 4:40 pm
Forum: Windows CMD Shell
Topic: doskey /reinstall
Replies: 1
Views: 55

Re: doskey /reinstall

Looks like that bug has been around for quite a while
a workaround is

Code: Select all

rem Clear the command history
doskey /LISTSIZE=0
doskey /LISTSIZE=50
via https://www.dostips.com/forum/viewtopic.php?f=3&t=5661
by Simon Sheppard
2022-Jun-26, 1:56 pm
Forum: Windows CMD Shell
Topic: variable character replace
Replies: 2
Views: 52

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...
by Simon Sheppard
2022-Jun-13, 2:17 pm
Forum: Windows CMD Shell
Topic: wmic diskdrive command invalid query
Replies: 2
Views: 120

Re: wmic diskdrive command invalid query

instead of wmic diskdrive getName ...
try wmic diskdrive get Name ...
by Simon Sheppard
2022-Apr-22, 9:03 pm
Forum: Windows VBScript
Topic: Arguments are overriden when using Drag&Drop
Replies: 1
Views: 276

Re: Arguments are overriden when using Drag&Drop

My first thought would be to add a batch file, drag a file onto the batch file,which then calls the VBScript using cscript.exe passing whatever arguments you want, which could include %* for the dropped filename(s).
by Simon Sheppard
2022-Apr-17, 9:25 am
Forum: General Tech News
Topic: Muting your mic doesn’t stop big tech from recording your audio
Replies: 1
Views: 443

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...
by Simon Sheppard
2022-Apr-14, 11:16 am
Forum: Windows CMD Shell
Topic: How to differentiate between similar filename extensions?
Replies: 6
Views: 581

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 ...
by Simon Sheppard
2022-Apr-12, 5:12 pm
Forum: Windows CMD Shell
Topic: How to differentiate between similar filename extensions?
Replies: 6
Views: 581

Re: How to differentiate between similar filename extensions?

Confirmed, if you turn off 8.3 generation using:

Code: Select all

FSUTIL.exe behavior set disable8dot3 1
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.
by Simon Sheppard
2022-Apr-09, 11:00 am
Forum: Windows CMD Shell
Topic: DELPROF2 no more developed
Replies: 1
Views: 354

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.
by Simon Sheppard
2022-Apr-02, 7:42 pm
Forum: Windows VBScript
Topic: VBScript to display current power plan
Replies: 1
Views: 373

Re: VBScript to display current power plan

In this line

Code: Select all

var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}r");
it looks like you have an extra 'r' at the end of the line.

Also try running it with cscript.exe to see if that works before wrapping it into an HTA.
by Simon Sheppard
2022-Mar-30, 10:37 am
Forum: Windows CMD Shell
Topic: Robocopy /IM
Replies: 0
Views: 324

Robocopy /IM

I updated the robocopy page yesterday to add the /IM and /COMPRESS options /IM (include modified) has the help text " include modified files (differing change times) " which doesn't make sense as copying files with a different last modified time or file size is the default action of Roboco...