Hey, I'm trying to make a simple net send application with no GUI. The program basically asks for the hostname, the message, then proceeds with filling out the information which is needed for the system command net, command option send. (net send host message).

I have this so far, but it just types out the whole string into the system command, not including the values within the variables. I am quite new to C so I don't have much of an idea of what I should be doing. Here's how it looks:

Code:
#include <stdio.h>
#include <dos.h>

int main()
{
char host, msg;

printf("\nEnter the hostname: ");
scanf("%d", &host);
printf("\nEnter your message: ");
scanf("%d", &msg);
system("net send %d %d", &host, &msg);
system("pause");
}

Tell me what you think, any help is greatly appretiated.

Gordon.