T trey5498 macrumors regular Original poster Jun 16, 2008 191 0 Dec 16, 2011 #1 If I ask for a user to enter a username (txtuser) ... BOB and then use that for a port how do I run the following? system("lpadmin -p printer -v ipp://server/txtuser -E -P /path to driver");
If I ask for a user to enter a username (txtuser) ... BOB and then use that for a port how do I run the following? system("lpadmin -p printer -v ipp://server/txtuser -E -P /path to driver");
robbieduncan Moderator emeritus Jul 24, 2002 25,611 893 Harrogate Dec 16, 2011 #2 How would you normally concatenate two or more strings?
T trey5498 macrumors regular Original poster Jun 16, 2008 191 0 Dec 16, 2011 #3 robbieduncan said: How would you normally concatenate two or more strings? Click to expand... I know how to do that. I was just wondering if there is an easier way to do it without creating another variable kinda like system("lpadmin -p printer -v ipp://server/" + txtuser + "-E -P /path to driver"); or something
robbieduncan said: How would you normally concatenate two or more strings? Click to expand... I know how to do that. I was just wondering if there is an easier way to do it without creating another variable kinda like system("lpadmin -p printer -v ipp://server/" + txtuser + "-E -P /path to driver"); or something
mfram Contributor Jan 23, 2010 1,378 435 San Diego, CA USA Dec 16, 2011 #4 You can't do that without another variable in C. In languages like C++ or Java, you can.