VBS Work on windows but not in Domoticz

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

VBS Work on windows but not in Domoticz

Post 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
Play Command.JPG (28.64 KiB) Viewed 1587 times
Log Play.JPG
Log Play.JPG (17.92 KiB) Viewed 1587 times
SweetPants

Re: VBS Work on windows but not in Domoticz

Post by SweetPants »

What happens if you execute the script from a .bat file?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: VBS Work on windows but not in Domoticz

Post 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.
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: VBS Work on windows but not in Domoticz

Post 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
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: VBS Work on windows but not in Domoticz

Post by ilpier »

it's very strange...
in Taskmgr i see this
Cattura.JPG
Cattura.JPG (31.77 KiB) Viewed 1522 times
but Spotify don't start...
Same if i use .bat or .vbs
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest