Skip to content

Instantly share code, notes, and snippets.

@tsu-nera
Created July 6, 2013 13:41
Show Gist options
  • Select an option

  • Save tsu-nera/5939919 to your computer and use it in GitHub Desktop.

Select an option

Save tsu-nera/5939919 to your computer and use it in GitHub Desktop.
ブログ画像 Google Picasa投稿用バッチファイル 1. Google Picasa にドラッグ & ドロップで投稿 2. 投稿した画像のURLを取得 3. <img src="URL"></a>に変換
@echo off
chcp 932
set file=%*
rem Picasaに投稿
python "C:\Python26\Scripts\google" picasa post Futurismo "%file%"
rem URL取得
for /f "usebackq tokens=*" %%a in (`python "C:\Python26\Scripts\google" picasa list --fields=url-direct --query "%file:C:\Users\TSUNEMICHI\Desktop\=%"`) do @set x=%%a
rem 変換
echo "<img src="%x%" />"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment