Author

Topic: script problems with BFL singles (Read 1184 times)

sr. member
Activity: 462
Merit: 250
I heart thebaron
legendary
Activity: 2044
Merit: 1000
June 16, 2012, 12:17:34 AM
#6
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 ? Wink

worked great!  Thanks!!
sr. member
Activity: 462
Merit: 250
I heart thebaron
June 15, 2012, 11:42:28 PM
#5
How much did I win ? 10,000 Internets ? Wink
-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 Wink


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 Wink
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
June 15, 2012, 11:40:52 PM
#4
How much did I win ? 10,000 Internets ? Wink
-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.
sr. member
Activity: 462
Merit: 250
I heart thebaron
June 15, 2012, 11:30:21 PM
#3
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 ? Wink
sr. member
Activity: 378
Merit: 250
Why is it so damn hot in here?
June 15, 2012, 06:45:43 PM
#2
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.
legendary
Activity: 2044
Merit: 1000
June 15, 2012, 06:16:02 PM
#1
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! 
Jump to: