Is this script ok to start a program?

Got a problem with Viscosity or need help? Ask here!

skivers

Posts: 1
Joined: Wed Jan 15, 2014 9:59 pm

Post by skivers » Wed Jan 15, 2014 10:15 pm
hi

I used your scripting article to get a heads up on how to start and stop u Torrent on connect and disconnect (my pc is always sneakily disconnecting)

I know nothing at all about scripting and tried the disconnect script (got it working eventually)- it took me two hours to discover I just had to double click a script to test the bloody thing! (because I couldn't be arsed reading the "hello" example) DOH!

Can you tell me if this script is safe to use to reconnect ? I only ask because is so much shorter than the "kill" example.

Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Users\Liam\AppData\Roaming\uTorrent\uTorrent.exe""")
Set objShell = Nothing

Thanks for your help - you probably have other examples for windows 7 around but I could only find mac examples (they look nice n easy)

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Thu Jan 16, 2014 12:27 pm
Hi skivers,

That script should work with Viscosity to start that application without a problem. Providing uTorrent does not need Admin rights to start, it should also post no risk to use.

Regards,

Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
2 posts Page 1 of 1