Bitcoin Forum

Bitcoin => Mining => Topic started by: saadtariq30 on June 01, 2011, 03:14:39 PM



Title: windows mining question..
Post by: saadtariq30 on June 01, 2011, 03:14:39 PM
hey guys..any way to delay the automatic startup of a program on windows 7?

im setting up a mining rig so that it automatically turns on and starts mining after a power failure..

using guiminer..problem is guiminer loads before msi afterburner gets a chance to apply the custom gpu voltages as the pc starts..pc hangs..

suggestions?


Title: Re: windows mining question..
Post by: RaTTuS on June 01, 2011, 03:18:18 PM
use a batch file and put a
sleep 60
before the guiminer command.

that will sleep for 60 seconds


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 03:19:26 PM
could you please help me with that?

right now im running guiminer by just adding it to the startup programs folder..

how do i make a batch file?


Title: Re: windows mining question..
Post by: LegitBit on June 01, 2011, 03:25:13 PM
Or you can use Soluto.

http://community.soluto.com/soluto/topics/how_does_delay_work

I personally don't like adding programs to my machine unless absolutely necessary, but this is straightforward and easy to setup.


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 03:33:07 PM
id rather learn how to make a batch file i guess..instead of installing another program


Title: Re: windows mining question..
Post by: RaTTuS on June 01, 2011, 03:38:37 PM
create a text file and call it
miner.bat
in it put
sleep 60
c:\guiminer\guiminer.exe

and put that in your startup folder - should do it


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 03:46:32 PM
create a text file and call it
miner.bat
in it put
sleep 60
c:\guiminer\guiminer.exe

and put that in your startup folder - should do it

ok i did what you said..it says sleep is not reconginzed as an internal or external command, operable program or batch file

when i run the batch file guiminer starts up and give the error: cannot open file logo.ico


Title: Re: windows mining question..
Post by: RaTTuS on June 01, 2011, 03:54:19 PM
umm
are you running xp , vista or windows 7
umm
I bet Vista as MS removed sleep ...
change it to
ping localhost -n 60
cd c:\guiminer
guiminer

so it changes to the correct directory


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 03:56:29 PM
using windows 7 64bit


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 04:02:40 PM
umm
are you running xp , vista or windows 7
umm
I bet Vista as MS removed sleep ...
change it to
ping localhost -n 60
cd c:\guiminer
guiminer

so it changes to the correct directory

ok it worked..sending 0.03btc your way for helping me out :)

ok the auto start function of the guiminer doesnt work when i run it through the batch file :S...if i run it directly it works :S

the log:

WindowsError: [Error 6] The handle is invalid
Traceback (most recent call last):
  File "guiminer.py", line 2005, in <module>
  File "guiminer.py", line 1995, in run
  File "guiminer.py", line 1509, in __init__
  File "guiminer.py", line 1699, in load_config
  File "guiminer.py", line 809, in start_mining
  File "subprocess.pyo", line 614, in __init__
  File "subprocess.pyo", line 722, in _get_handles
  File "subprocess.pyo", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid


Title: Re: windows mining question..
Post by: RaTTuS on June 01, 2011, 04:12:48 PM
it may be worth just running the miner directly rather than the guiminer interface...


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 04:17:09 PM
how do i do that..never used to directly before..


Title: Re: windows mining question..
Post by: RaTTuS on June 01, 2011, 04:27:28 PM
I'm a bit new myself however....
if you look in the console view it will show you what it passes to the relevant miner - give that a go ,
though this will probably leave the cmd window open ,
now there may be ways of detaching it - but I'm really not sure.
...
/me gone I'll be back in a few hours with a bit[coin] of luck :P


Title: Re: windows mining question..
Post by: saadtariq30 on June 01, 2011, 04:28:56 PM
ok thanks..got it:)