WshShell.Run chr(34) & "C:\cgminer\cgminer.exe" & Chr(34), 0
Set WshShell = Nothing
This works, but when you want start it with windows, you must put it to start up menu (right click open for all, when for all users).
But when I try to run it through registry or task sheduler, it wont work. When some one solve it, how to run it wia task sheduler as admin or something like this, so cgminer will run hidden, after login any user, it will run after log off or it start with system let me know. BTW when I test it with task sheduler, he run script, cgminer start and then close immediately.
Sorry for my english.