VMware Horizon Community
lschwingler2
Contributor
Contributor

cmd or bat file when using commandstorunon...

Does anyone know if you run a cmd or bat file when using the "commandstorunonconnect" and "commandstorunonreconnect"? I got it work with a vb script but can't get it execute with .cmd or .bat file extension. I just want to run the "show desktop.scf" link to minimize all windows when I user logs in.

Thanks!

0 Kudos
1 Reply
lschwingler2
Contributor
Contributor

I was able to get it work by using vbs script to call a bat file using the following command:

dim shell

set shell=createobject("wscript.shell")

shell.run "c:\reconnect.bat"

set shell=nothing

I anyone still knows a way to get it to work by calling the .bat or .cmd from the commandstorun... I'd love to hear it!

0 Kudos