Kodi Community Forum

Full Version: XBMC Command Line Tool
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have just uploaded to

http://sourceforge.net/project/showfiles..._id=198866

a program, XBMCCmd, that allows XBMC HttpApi commands to be sent directly from a Windows command line.

e.g.
Quote:XBMCCmd GetCurrentlyPlaying
Quote:XBMCCmd getdirectory(smb://mypc/c/)
Quote:XBMCCmd "getdirectory&parameter=smb://mypc/c/"

See the readme.txt file included in the package for further instructions.

Nad
awesome. out of curiosity, what inspired you to make this?
I guess I'm a bit of a command line junkie. However, for anyone slightly familiar with a command line, XBMCCmd provides a mechanism for exploiting the power of XBMC from your PC.

For example create a batch file, called xplay.bat, with the contents similar to:
Quote:xbmccmd playfile(smb://myPC/c/%1)

and you will be able to type something like:

Quote:xplay movies\geewizmove.avi

It is also useful for writing test scripts.

However, if you want a Windows interface to XBMC, have a look at XBMCControl which is also on SourceForge. Among lots of other functionality it can play media with a link copied to the clipboard, e.g. right click on an mp3 stored on your PC's hard disk, chose Copy and then XBMC will start playing it (if XBMCControl is configured to turn this function on).
hehe figured as much, just thought there might have been some specific tasks that made you want it. Smile