Multiple Symbolic Links Windows

Create a batch file, for example: symlink.bat with the following content and edit the source and target locations to suit. @echo off set "source=c:\source\directory" set "target=c:\target\directory" set "exclude=%temp%\exclude.txt" ( rem exclude files/dires with these strings into full path echo .txt echo pipe.cmd rem escaped backslash and initial and final quotes to avoid partial matches echo "c:\\source\\directory\\something.txt" rem exclude thisNot file/directory from source directory echo "%source:\=\\%\\thisNot" )> "%exclude%" forfiles /P "%source%" /C "cmd /c (echo @path|findstr /i /v /g:"%exclude%" >nul) && if @isdir==TRUE (mklink /d \"%target%\\\"@file @path) else (mklink \"%target%\\\"@file @path)" del "%exclude%" > nul Original answer posted on: stackoverflow

November 2, 2021 · 1 min · Mark

SSH copy keys from Windows

I have recently been setting up an old Mac Mini as Webserver and NAS server. One of the things I wanted to do was enable ssh key pair login and wonderd how one used ssh-copy-id on a Windows machine to get the public key from a local machine to the server. It turns out you can’t but the cat command can do it just fine. Here is the template: C:\Users\<user>\.ssh\ | ssh <user>@<remoteserver> cat >> ....

October 22, 2021 · 1 min · Mark

Function Key Toggle Apple Keyboard.

For Windows using the Apple USB keyboard without Bootcamp Control Panel software i.e. you aren’t using a Mac but still want to use the APPLE SUB Keyboard. Open the Registry and search for the following Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KeyMagic Find the entry OSXFnBehavior Change the value from 01 to 00 00 is Function Keys 01 is Media Keys Unplug the keyboard or restart the computer to reload the new value.  

June 27, 2019 · 1 min · Mark

Blogo – Long time no see

I recently wrote about how nice it was to see Windows Live Writer again, and while it works great in most aspects it fails on a purely cosmetic one. The site themes or at least the simple one I am using renders incorrectly in fact it makes the feature a bug not a bonus. Today I came across and article on Blogging editors for off-line work and was reminded of one I have had since it was launched Blogo is Mac only and it was nice, it wasn’t perfect but pretty good....

March 27, 2017 · 1 min · Mark

Windows 10 Drag and Drop Bug

You are going to love this Windows 10 bug: Drag and Drop stops working for me occasionally and I finally found out how to fix it, hit the escape key. That’s it if you find you can’t drag drop icons in Explorer under Windows 10 try hitting the Escape key once and it should work. Although it isn’t working for everyone but worth a try 🙂 Another thing worth trying and checking is to run the...

July 21, 2016 · 1 min · Mark