Unable to run the Miner using 2Pac BM1384 USB miner I have created a batch file and  I tried to run it. But when I click on the batch file to run it. But the command line window appears for a fraction of a second and then disappears.

cgminer.exe  --gekko-2pac-freq 200 -o stratum+tcp://peercoin.ecoining.com:3336 -u username.1 -p x


===========================================================
I have tried the below in a batch file,  it gives the below output in the command line  

cgminer.exe  -o stratum+tcp://peercoin.ecoining.com:3336 -u username.1 -p x




       cgminer version 4.10.0 - Started: [2017-12-24 04:09:20.602]

 (5s):528.0M (1m):507.5M (5m):516.4M (15m):366.6M (avg):516.0Mh/s
 A:0  R:0  HW:2  WU:5.6/m
 Connected to peercoin.ecoining.com diff 16.4K with stratum as user username


      Block: c22a0a3f...  Diff:1.61G  Started: [04:15:53.420]  Best share: 98

 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit


     0: AMU GS-10018:                         | 528.0M / 516.0Mh/s WU: 5.6/m

 [2017-12-24 04:09:16.557] Started cgminer 4.10.0
 [2017-12-24 04:09:19.601] Probing for an alive pool
 [2017-12-24 04:09:20.083] Pool 0 difficulty changed to 16384
 [2017-12-24 04:09:20.602] Network diff set to 1.61G
 [2017-12-24 04:15:53.420] Stratum from pool 0 detected new block at height 0


============================================================

Is the issue with the script for batch file?

The Syntax for the cgminer.

Run cgminer using following the commands below:

cgminer.exe --gekko-2pac-freq 200
-o stratum+tcp://solo.ckpool.org:3333
-u (your username here) -p (your password here)




Also how to verify the CGi miner is using the Gekko  2Pac BM1384 USB miner?
I had a similar problem when I first started with the 2pac. You didn't mention if you are using a Windows or Linux platform, but the solution is similar either way. 

Solution: Ensure your CGMiner binary is compiled to support the Gekko 2Pac. It seems your BM1384 2Pac is not being recognized properly by CGMiner. 

This output you provided:

"0: AMU GS-10018: | 528.0M / 516.0Mh/s WU: 5.6/m"

...shows that it is being enumerated as an "AMU" (which is usually ASICMINER block erupters ) It should be "GSC" for a GekkoScience device.  That's also why you are seeing the low hash rate and hardware errors.

So, be sure you have a gekko-enabled CGMiner binary, and also ensure your batch file points to that same correct binary. (correct path)

If you need more detailed help, please state whether you are on a Windows or Linux platform.