GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Jul-2006, 20:08
cv13 cv13 is offline
New Member
 
Join Date: Jul 2006
Posts: 4
cv13 is on a distinguished road

User input with system(""); commands?


How can you use user input with system(); commands?

ex;
system("net send * \"[userinput]\"");

I've always wondered...
And i'm very new.
  #2  
Old 20-Jul-2006, 00:23
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,244
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: User input with system(""); commands?


Create a string with the command and use that string:
CPP / C++ / C Code:
userstring = "net send " + userinput;
system(userstring);
Use the proper syntax for C or C++ to get the userstring built correctly.
__________________

Age is unimportant -- except in cheese
  #3  
Old 20-Jul-2006, 08:27
cv13 cv13 is offline
New Member
 
Join Date: Jul 2006
Posts: 4
cv13 is on a distinguished road

Re: User input with system(""); commands?


Quote:
Originally Posted by WaltP
Create a string with the command and use that string:
CPP / C++ / C Code:
userstring = "net send " + userinput;
system(userstring);
Use the proper syntax for C or C++ to get the userstring built correctly.
Ooh, I see...
I had similar but I couldn't quite get it, but now I do.
Thanks!
 
 

Recent GIDBlogBelkin Laptop Cooler by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu of character strings aijazbaig1 C Programming Language 21 27-Jul-2006 03:07
Hw to choose certain field in mysql input by user in visual C++/MFC and display in CR bryan523 C++ Forum 6 25-Sep-2005 19:19
collecting user input from radio buttons. Adelle29 Web Design Forum 1 31-May-2004 16:28
Need Help on checking user input hihellochao C Programming Language 5 27-Feb-2004 13:30
Script needed for letting user input a few days of data for tracking and analysis. tradertt MySQL / PHP Forum 3 06-Mar-2003 02:54

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.