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,350 points
379 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,740 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
1,006 views
+1 vote
0 answers

How can i made a ledger-system using hyperledger.

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

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

Basically you implement requested logic on by ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
1,231 views
+1 vote
1 answer

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

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,450 points
1,140 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,682 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,224 views
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,740 points
876 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,740 points
616 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