Bitcoin Forum

Bitcoin => Mining support => Topic started by: yochdog on June 15, 2012, 10:16:02 PM



Title: script problems with BFL singles
Post by: yochdog on June 15, 2012, 10:16:02 PM
Can someone tell me why this script fails to launch CGminer:

C:\Users\Hanz Solo\Desktop\cgminer-2.4.1-win32\cgminer.exe -S COM4 -S COM5



When I run that batch file, the window pops up briefly, then disappears.  I can launch CGminer by double tapping the .exe, but that script wont do it.

Any help is appreciated! 


Title: Re: script problems with BFL singles
Post by: TheHarbinger on June 15, 2012, 10:45:43 PM
Can someone tell me why this script fails to launch CGminer:

C:\Users\Hanz Solo\Desktop\cgminer-2.4.1-win32\cgminer.exe -S COM4 -S COM5



When I run that batch file, the window pops up briefly, then disappears.  I can launch CGminer by double tapping the .exe, but that script wont do it.

Any help is appreciated! 

That usually happens when cgminer hits an error and quits.  Try running it from the CMD prompt and see what it does.


Title: Re: script problems with BFL singles
Post by: bitlane on June 16, 2012, 03:30:21 AM
THAT is not a BAT file.....

Where are you launching from ?

The problem is your SPACE in your USERNAME.

You are trying to launch a CMD function in the form of a Shortcut.....
SPACES in a shortcut path require the shortcut to have "quotation marks" around the entire thing....a CMD does not.

just make a BAT file in the same folder as your CGMIner....

Code:
cgminer.exe -S COM4 -S COM5

Then send a shortcut from that BAT file to your desktop to double-click

OR...

create a PROPER shortcut and use "QUOTATION" marks around it....

"C:\Users\Hanz Solo\Desktop\cgminer-2.4.1-win32\cgminer.exe -S COM4 -S COM5"


How much did I win ? 10,000 Internets ? ;)


Title: Re: script problems with BFL singles
Post by: rjk on June 16, 2012, 03:40:52 AM
How much did I win ? 10,000 Internets ? ;)
-1 internets, the arguments go outside the quotes. Additionally, cgminer is within the search path (he said it opened and then closed), so the quotes aren't totally necessary, just are best practice.


Title: Re: script problems with BFL singles
Post by: bitlane on June 16, 2012, 03:42:28 AM
How much did I win ? 10,000 Internets ? ;)
-1 internets, the arguments go outside the quotes. Additionally, cgminer is within the search path (he said it opened and then closed), so the quotes aren't totally necessary, just are best practice.

DAMN....lol

"C:\Users\Hanz Solo\Desktop\cgminer-2.4.1-win32\cgminer.exe" -S COM4 -S COM5

Who the fuck uses shortcuts anyways ;)

<EDIT>
I just checked to confirm...IN WINDOWS, if space is present in shortcut path properties, QUOTATION MARKS are present ....
If 'best practice' is Windows...then, YES...hehe


Additionally, cgminer is within the search path (he said it opened and then closed), so the quotes aren't totally necessary, just are best practice.

I bet if you asked his if the screen showed CGMiner or simply a brief open/close of a CMD screen, he couldn't tell you either way....

He ASSUMED it was CGMiner ;)


Title: Re: script problems with BFL singles
Post by: yochdog on June 16, 2012, 04:17:34 AM
THAT is not a BAT file.....

Where are you launching from ?

The problem is your SPACE in your USERNAME.

You are trying to launch a CMD function in the form of a Shortcut.....
SPACES in a shortcut path require the shortcut to have "quotation marks" around the entire thing....a CMD does not.

just make a BAT file in the same folder as your CGMIner....

Code:
cgminer.exe -S COM4 -S COM5

Then send a shortcut from that BAT file to your desktop to double-click

OR...

create a PROPER shortcut and use "QUOTATION" marks around it....

"C:\Users\Hanz Solo\Desktop\cgminer-2.4.1-win32\cgminer.exe -S COM4 -S COM5"


How much did I win ? 10,000 Internets ? ;)

worked great!  Thanks!!


Title: Re: script problems with BFL singles
Post by: bitlane on June 16, 2012, 04:56:07 AM
worked great!  Thanks!!

;)