Last active
April 7, 2017 05:16
-
-
Save hymkor/0d55d12de90e346678ef061ace279a01 to your computer and use it in GitHub Desktop.
Twitter post batchfile by twty and vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set "TWEET=%TEMP%\tweet.txt" | |
type nul > "%TWEET%" | |
gvim -c "e ++enc=utf8" "%TWEET%" | |
if errorlevel 1 exit /b | |
for %%I in (%TWEET%) do if %%~zI LEQ 1 exit /b | |
twty -ff "%TWEET%" | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment