Skip to content

Instantly share code, notes, and snippets.

@mebiusbox
Created March 25, 2017 06:24
Show Gist options
  • Save mebiusbox/1d7e7002ba37f4d30b6e6c98771122f2 to your computer and use it in GitHub Desktop.
Save mebiusbox/1d7e7002ba37f4d30b6e6c98771122f2 to your computer and use it in GitHub Desktop.
Copy the dropped files as image element of markdown to clipboard for boostnote on windows
@echo off
setlocal enabledelayedexpansion
for %%f in (%*) do (
set fullpath=%%f
set /P<NUL="^![%%~nxf](!fullpath:\=/!)"|clip
)
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment