View Single Post
Old 07-22-2011, 07:58 AM   #18
karunaji
Evangelist
karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.
 
karunaji's Avatar
 
Posts: 421
Karma: 1033566
Join Date: Mar 2010
Location: Latvia
Device: Kindle 3 Wifi, Bookeen Opus
I adapted the batch file a little bit and added it to the Windows Explorer right click "Send to" menu (by making a shortcut and dragging it to %APPDATA%\Microsoft\Windows\SendTo folder). Now it is only 2 clicks to send all word documents to Kindle as long as Kindle Wi-Fi is activated (on jailbroken device).

Code:
set kindleip=192.168.0.xx
set kindlepw=xxx
%~d1
cd "%~p1"
echo converting %1 to %~n1.mobi with title %title% and copying it to Kindle with %kindleip%
"C:\Program Files (x86)\AbiWord\bin\AbiWord.exe" --to=html "%~n1%~x1"
"C:\Program Files (x86)\Calibre2\ebook-convert.exe" "%~n1.html" .mobi 
c:\Windows\pscp -pw %kindlepw% "%~n1.mobi" root@%kindleip%:/mnt/us/documents/remote/
c:\Windows\plink -pw %kindlepw% root@%kindleip% "dbus-send --system /default com.lab126.powerd.resuming int32:1"
karunaji is offline   Reply With Quote