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 4,177 other subscribers

Archive for June 19th, 2020

“This app can’t run on your PC – To find a version for your PC, check with the software publisher.”

Posted by jpluimers on 2020/06/19

I had a problem running wmic. It was no a Dutch Windows 10, but the same will happen with any locale, so in English the error looks like this:

This app can't run on your PC

To find a version for your PC, check with the software publisher.

After which you get this on the command-line:

Access is denied.

In the Dutch version, the error is called this:

Deze app kan niet worden uitgevoerd op uw pc

Vraag bij de software-uitgever na of er een versie bestaat voor uw pc.

After which you get this on the command-line:

Toegang geweigerd.

Apparently, an executable is now an app, and PC is uppercase in English, but not in Dutch. I digress.

The un-cool thing is that [WayBack] Process Monitor – Windows Sysinternals | Microsoft Docs showed no Access Denied message at all.

What happened however, was that there was an empty %SystemRoot%\System32\wmic.exe, which gets executed because %SystemRoot%\System32 is earlier on the path than C:\Windows\System32\wbem\WMIC.exe.

Note that %SystemRoot% seems to be the new %windir%.

You can reproduce this by doing this on a command prompt window:

cd %temp%

rem > wmic.exe

wmic

The rem will create an empty wmic.exe. Because on Windows, the current directory is always on the path, it tries to execute the empty wmic.exe, which causes the error.

Do not run an administrative in the default %SystemRoot%\System32 directory

The actual cause was a combination of this:

  1. When running cmd as Administrator, it starts in %SystemRoot%\System32
  2. %SystemRoot%\System32 is early on the path
  3. Copy/Paste through a remote desktop connection is unreliable
  4. I copied a big bunch of output from the RDP session to my host to write some documentation
  5. I copied a new command from the host to run in the Administrative cmd
  6. What got pasted instead was the output, which created these empty files (which has some typos, I know) because output is of the form C:\path>filename:

    C
    conrol
    control
    defrag
    del
    Disable-ComputerRestore
    exit
    Get-ComputerRestorePoint
    net
    powercfg
    powershell
    powrcfg
    SystemProperties.exe
    vssadmin
    wmic
    wmic.exe

  7. I did not notice these files were created in  %SystemRoot%\System32

–jeroen

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

Computing History – The UK Computer Museum – Cambridge

Posted by jpluimers on 2020/06/19

On my places to visit:

The Centre for Computing History is a computer museum based in Cambridge, UK. With a collection of vintage computers and game consoles, many of the exhibits are hands on and interactive.

[WayBackComputing History – The UK Computer Museum – Cambridge.

When I bumped into it, this was their collection size, ranging from the 1960s until recent history:

Archive Statistics :

  • Computers = 993
  • Peripherals = 1446
  • Mobile Devices = 31
  • Game Consoles = 213
  • Video Games = 10259
  • Software Packages = 2605
  • Books = 2045
  • Manuals = 4106
  • Magazines = 9057

Looking at their archived brands (having [WayBack] MITS – Altair and [WayBack] Raspberry Pi in the collection) is such a joy.

Archiving the older parts is a tough job, as they stem from way before the web era, so information has been lost, parts are hard to source, a lot of hardware got thrown away or is hard to find at all, people have died. More on that at [WayBack] About – Computing History.

Without a physical visit, you can find what they have at [WayBack] Search Our Archive – Computing History.

The video below on their archive is impressive.

–jeroen

Read the rest of this entry »

Posted in 6502, 68k, Apple I, BBC Micro B, BBS, C64, Commodore, CP/M, dial-up modems, FidoNet, History, IBM SAA CUA, PowerPC, Tesseract, VIC-20, Z80 | Leave a Comment »

Creating a properly aligned partition with parted – twm’s blog

Posted by jpluimers on 2020/06/19

I like the deceptively simple, if you remind that percent signs are the way to go for GNU parted (not to be confused with gparted which is Gnome parted).

At [WayBack] Creating a properly aligned partition with parted – twm’s blog:

mkpart /dev/somedevice ext4 0% 100%

It gets rid of the dreaded “The resulting partition is not properly aligned for best performance”.

References:

Via: [WayBack] Parted is a flexible tool for working with partition tables under Linux. Unfortunately it sometimes seems rather stupid… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in *nix, *nix-tools, parted, Power User | Leave a Comment »

 
%d bloggers like this: