Bitcoin Forum
April 26, 2024, 06:31:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: script problems with BFL singles  (Read 1165 times)
yochdog (OP)
Legendary
*
Offline Offline

Activity: 2044
Merit: 1000



View Profile
June 15, 2012, 10: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! 

I am a trusted trader!  Ask Inaba, Luo Demin, Vanderbleek, Sannyasi, Episking, Miner99er, Isepick, Amazingrando, Cablez, ColdHardMetal, Dextryn, MB300sd, Robocoder, gnar1ta$ and many others!
1714113092
Hero Member
*
Offline Offline

Posts: 1714113092

View Profile Personal Message (Offline)

Ignore
1714113092
Reply with quote  #2

1714113092
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714113092
Hero Member
*
Offline Offline

Posts: 1714113092

View Profile Personal Message (Offline)

Ignore
1714113092
Reply with quote  #2

1714113092
Report to moderator
1714113092
Hero Member
*
Offline Offline

Posts: 1714113092

View Profile Personal Message (Offline)

Ignore
1714113092
Reply with quote  #2

1714113092
Report to moderator
TheHarbinger
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Why is it so damn hot in here?


View Profile
June 15, 2012, 10: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.

12Um6jfDE7q6crm1s6tSksMvda8s1hZ3Vj
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
June 16, 2012, 03:30:21 AM
 #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

rjk
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


View Profile
June 16, 2012, 03:40:52 AM
 #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.

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
June 16, 2012, 03:42:28 AM
 #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

<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 Wink

yochdog (OP)
Legendary
*
Offline Offline

Activity: 2044
Merit: 1000



View Profile
June 16, 2012, 04: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!!

I am a trusted trader!  Ask Inaba, Luo Demin, Vanderbleek, Sannyasi, Episking, Miner99er, Isepick, Amazingrando, Cablez, ColdHardMetal, Dextryn, MB300sd, Robocoder, gnar1ta$ and many others!
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
June 16, 2012, 04:56:07 AM
 #7

worked great!  Thanks!!

Wink

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!