Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. setlocal
  2. set "TWEET=%TEMP%\tweet.txt"
  3. type nul > "%TWEET%"
  4. gvim "%TWEET%"
  5. if errorlevel 1 exit /b
  6. set "CONTENT="
  7. for /F "tokens=*" %%I in ('type "%TWEET%"') do call :set "%%~I"
  8. if "%CONTENT%" == "" exit /b
  9. echo "%CONTENT%"
  10. endlocal
  11. exit /b
  12.  
  13. :set
  14. set "CONTENT=%CONTENT%%~1 "
  15. exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement