Network Refresh Script
#1
Hi,

I was wondering if someone would be so kind and write a little script for me, as i am rubbish with python.

I need a script that does exactly the same reboot/refresh as the one that is built into xbmc.
The one in particular is when you change your workgroup and a message pops up asking you to refresh your network settings.

Reason being is that my revo is playing up and on first boot i cannot access my movie shares. But whenever i change the workgroup to something random and do the refresh it works everytime.

So to save me having to keep changing my settings a simple script would be most appreciated !


Thanks

-EDIT-
My terrible attempt was to just put xbmc.RestartApp in a .py but it didnt work Sad
Reply
#2
What you want is this:

Code:
import xbmc

xbmc.executebuiltin("RestartApp")

http://wiki.xbmc.org/?title=List_of_Built_In_Functions

How about just restarting XBMC from the Shutdown menu?
Reply

Logout Mark Read Team Forum Stats Members Help
Network Refresh Script0