The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Archive for the ‘Windows’ Category

Copy files on Mac OS X using drag-and-drop | alvinalexander.com: secret is to hold the Option key

Posted by jpluimers on 2020/12/14

The Finder pure keyboard way of file copy+paste is using CommandC at the source position followed by CtrlCommandV in the destination position (in the destination position,  CommandV will do only a cut+paste) as the paste/copy decision is determined in the final stage.

This is unlike Windows, where CtrlC means copy, CtrlX means cut, and CtrlV finishes the initial action to copy+paste or cut+paste

If you combine mouse dragging, on the Mac it becomes Optiondrag, whereas on Windows it still is Ctrldrag.

I think the Windows ones are more consistent, especially when looking at them in table form:

Action Windows Mac
Keyboard-Only Mouse-drag Keyboard-Only Mouse-drag
copy+paste CtrlC; CtrlV Ctrldrag CommandC; Ctrl+CommandV Optiondrag
cut+paste (or move) CtrlX; CtrlV drag CommandC; CommandV drag

(table with help of HTML Table generator – TablesGenerator.com)

Mac shortcuts via:

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Power User, Windows | Leave a Comment »

FAQ Desk: Autosaving “unnamed” `new 1` files | Notepad++ Community

Posted by jpluimers on 2020/12/14

From [WayBack] FAQ Desk: Autosaving “unnamed” new 1 files | Notepad++ Community:

Check your directory %AppData%\Notepad++\backup\

–jeroen

Posted in Power User, Windows | Leave a Comment »

Win32 build of less 530

Posted by jpluimers on 2020/12/11

Since I do not have a C or C++ build environment, I was looking for the less 530 release for Windows.

I found it via these links:

Searching for less 530, I bumped in these links as well:

  • [WayBack] `less` performs differently when invoked from Bash and from Git – Unix & Linux Stack Exchange 
    • When invoked via git, it does not restore screen content
  • Cause: [WayBack] Git – git-config Documentation: core.pager

    core.pager

    Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the $GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually less).

    When the LESS environment variable is unset, Git sets it to FRX (if LESS environment variable is set, Git does not change it at all). If you want to selectively override Git’s default setting for LESS, you can set core.pager to e.g. less -S. This will be passed to the shell by Git, which will translate the final command to LESS=FRX less -S. The environment does not set the S option but the command line does, instructing less to truncate long lines. Similarly, setting core.pager to less -+F will deactivate the F option specified by the environment from the command-line, deactivating the “quit if one screen” behavior of less. One can specifically activate some flags for particular commands: for example, setting pager.blame to less -S enables line truncation only for git blame.

    Likewise, when the LV environment variable is unset, Git sets it to -c. You can override this setting by exporting LV with another value or setting core.pager to lv +c.

 

–jeroen

Posted in Power User, Windows | Leave a Comment »

On Windows 7 and 8.x too: Completely disable Windows 10 telemetry collection – twm’s blog

Posted by jpluimers on 2020/12/10

From [WayBack] Completely disable Windows 10 telemetry collection – twm’s blog:

So I don’t forget: According to an article in c’t magazine, disabling the “DiagTrack” service (“Connected User Experience and Telemetry”) will completely disable user tracking in Windows 10. They also say that they did not see any negative effects.

Source: [WayBack] Telefonierverbot in c’t 01/2019 page 172 (in German)

I saw at least one system where the service is not shown when you run Services.msc: it did not list DiagTrack, nor Connected User Experience and Telemetry. How awful is that!

The service can also be installed non older Windows versions: [WayBack] Just found DiagTrack running in Services – Tips and Tricks

Sometimes, it gets re-enabled. I think this happens during major Windows updates.

To inspect, stop and disable

Run all commands from the console the below bold commands. The non-bold text was the output on my system. If instead of the cmd.exe console, you run a PowerShell console, then remove the bits PowerShell -Command " and " at the start and end of each command.

The first command does not require an Administrative (UAC Elevated) command prompt; the last one does.

However, the first command, needs the | Select-Object * bit as otherwise most of the fields will not be displayed, excluding for instance StartType.

powershell -Command "Get-Service -Name DiagTrack | Select-Object *"


Name                : DiagTrack
RequiredServices    : {RpcSs}
CanPauseAndContinue : False
CanShutdown         : True
CanStop             : True
DisplayName         : Connected User Experiences and Telemetry
DependentServices   : {}
MachineName         : .
ServiceName         : DiagTrack
ServicesDependedOn  : {RpcSs}
ServiceHandle       :
Status              : Running
ServiceType         : Win32OwnProcess
StartType           : Automatic
Site                :
Container           :

On an Administrative command-prompt:

powershell -Command "Set-Service -Name DiagTrack -StartUpType Disabled"
powershell -Command "Get-Service -Name DiagTrack | Stop-Service"

Two notes:

Read the rest of this entry »

Posted in Batch-Files, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »

Running BBS Door Games on Windows 10 with GameSrv, DOSBox, plus telnet fun with WSL – Scott Hanselman

Posted by jpluimers on 2020/12/07

Reminder to self: see if I ever can resurrect my old BBS and FidoNet node that was based on at least:

  • FrontDoor (by Joaquim Homrighausen)
  • RemoteAccess (by Andrew Milner)
  • GoldED (by Odinn Sørensen)
  • A FOSSIL driver (forgot the name)
  • A Fidonet NodeList Compiler
  • a Message Tosser

Maybe a good place to start: [WayBack] Running BBS Door Games on Windows 10 with GameSrv, DOSBox, plus telnet fun with WSL – Scott Hanselman

I already wrote a few times about me being on Fidonet, and BITNET in the late 1980s:

A few email addresses I have been using in that era:

A tag-line from me in that era (I blanked out the phone number as it now belongs to someone else):

    o _   _  _   _   _             voice:  +31-2522-XXXXX (19:00-22:00 UTC)
   / (_' |  (_) (_' | |            snail:  P.S.O.
__/                                        attn. Jeroen W. Pluimers
                                           P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl               2170 AG Sassenheim
jeroen_pluimers@f521.n281.z2.fidonet.org   The Netherlands

Related:

–jeroen

Posted in BBS, dial-up modems, FidoNet, History, MS-DOS, Power User, Windows | Leave a Comment »

How to install Telnet with only one command

Posted by jpluimers on 2020/12/01

Source: [WayBackHow to install Telnet with only one command:

dism /online /Enable-Feature /FeatureName:TelnetClient

–jeroen

Posted in Microsoft Surface on Windows 7, Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Vista | Leave a Comment »

Compressing C:\Users\All Users\Microsoft\ClickToRun\ProductReleases

Posted by jpluimers on 2020/11/27

Microsoft keeps more and more under C:\Users\All Users\Microsoft\ClickToRun\ProductReleases (also accessible via C:\ProgramData\Microsoft\ClickToRun\ProductReleases or more precisely %AllUsersProfile%\Microsoft\ClickToRun\ProductReleases).

This can be huge, running into 10s of gigabytes, which – for todays cloud, VM and light-weight device based world – is huge.

Compressing seems to fail for me consistently, as I get “access denied” while compressing when elevating from Windows Explorer.

So this is a reminder to sort this out eventually.

These did not help yet:

I don’t dare deleting it:

Hopefully it is something explainable like the a virus scanner.

Later

Yup: it was the Avira Virus Scanner.

Somehow it has the Windows Explorer UI cause an “Access Denied” message to appear when elevating, but you can still compress files fine in a subdirectory with these steps:

Given a subdirectory named C:\SomeDir\A do this:

  1. pushd C:\SomeDir\A
  2. compact /c /s *.*
  3. cd ..
  4. compact /c A
  5. popd

It is not the first time I bump into Avira stuff (but I only blogged about it once, dumb me: VirusTotal: Avira marks a Delphi built executable als false positive), but the decision of using it was outside my control.

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »

Exiting the Microsoft Narrator

Posted by jpluimers on 2020/11/24

The keyboard bindings for the Microsoft Narrator changed in Windows 10 from Windows 8.1 and earlier.

Since the below support pages refuse to save in the WayBack machine and Archive.is, I copy-pasted some bits of them.

Related:

Read the rest of this entry »

Posted in Power User, Windows, Windows 10, Windows 8, Windows 8.1 | Leave a Comment »

FeaturesShim: using ShimGen for creating a shim to a program either console or GUI so you need only one bin directory

Posted by jpluimers on 2020/11/17

[WayBack] FeaturesShim is a cool Chocolatey feature that uses ShimGen.

This allows Chocolatey to take only one directory in your search PATH, with a lot of small files, that link to the much larger actual executable files.

ShimGen (like many other parts of Windows and some other parts of Chocolatey) is not open source, but the mechanism is documented.

More information:

–jeroen

Posted in .NET, Development, Power User, Software Development, Windows, Windows Development | Leave a Comment »

“net view” “System error 1231 has occurred.” “Windows 10”

Posted by jpluimers on 2020/11/09

On my research list: none of my Windows 10 PC’s in WORKGROUP can see that other machines exist, but they can connect to each other.

C:\>net view
System error 1231 has occurred.c

C:\>net view
System error 6118 has occurred.

On Windows 8.1 and 7 (I know: both beyond end-of-support) can see both Windows 8.1/7 machines and Windows 10 machines:

C:\>net view
Server Name          Remark
-------------------------------------------------------------------------------
\\...
The command completed successfully.

It is unclear on which Windows 10 release this started failing. I think it is around 1803 (April 2018 Update) or 1709 (Fall Creators Update). It fails despite all settings indicating sharing and discovery are enabled:

Things tried that failed:

Start service WebClient

Tried from an administrative command prompt, then waited a minute:

C:\net start WebClient
The WebClient service is starting.
The WebClient service was started successfully.

Failed.

Via: [WayBack] System error 1231 has occurred – Microsoft Community

Ensure system names are uppercase

The system names were already in uppercase.

Via: [WayBack] Win10 10586 – FOUND FIX for system error 1231 bug ( network shares – Microsoft Community

TODO

Note: do not re-enable SMBv1 as it is inherently insecure!

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »