Page 1 of 1
VBS Work on windows but not in Domoticz
Posted: Tuesday 18 April 2017 16:38
by ilpier
Hi to all,
i've made a .vbs for launch spotify and play my favourites playlist and this work fine from windows.
in domoticz I created a virtual switch with the command to start the VBS files but nothing happens even in the logs seems everything started correctly
Where is the problem!?

- Play Command.JPG (28.64 KiB) Viewed 1710 times

- Log Play.JPG (17.92 KiB) Viewed 1710 times
Re: VBS Work on windows but not in Domoticz
Posted: Tuesday 18 April 2017 19:21
by SweetPants
What happens if you execute the script from a .bat file?
Re: VBS Work on windows but not in Domoticz
Posted: Tuesday 18 April 2017 19:22
by zak45
Hi,
I would do it in this way:
create a cmd file e.g. c:\playmagnifica.cmd
put on it:
cmd /c start cscript c:\playmagnifica.vbs
In this way you will go back to Domoticz very quickly, otherwise could fail if more than 10 seconds.
And this should work.
lets try.
Re: VBS Work on windows but not in Domoticz
Posted: Wednesday 19 April 2017 9:59
by ilpier
@SweetPants idem if execute VBS script from a .bat
If i launch .bat from windows work if ilaunch from Domoticz in log "Execute script.." but nothing happens.
@zak45 .cmd work on windows but in domoticz no way and in log "Error: SQLHelper: Error script not found 'C:\playmagnifica.cmd'" it seems that domoticz might not start as a .cmd script
Re: VBS Work on windows but not in Domoticz
Posted: Thursday 20 April 2017 19:49
by ilpier
it's very strange...
in Taskmgr i see this

- Cattura.JPG (31.77 KiB) Viewed 1645 times
but Spotify don't start...
Same if i use .bat or .vbs