Hello, i’m just messing around right now in C++ and i’m trying to make my own little “search” utility b/c the one in windows xp is horribly slow and i’ve found with a batch file you can find the location of something like 100x faster then windows search can. so now i’m just trying to write a little program that will be more flexible then going into a batch file and changing a file name every time i want to find something 🙂 however, for this i need to take in a variable and then include that in the system() command as the string. but i’m not sure how i’d do this.. as of now i tried:
system(“dir /s /b | find /i “” << strng << “” > “c:shibbyfoundfile.shibby””);
but Dev-C++ tells me: “error: invalid
operands of types `const char’ and `char’ to binary `operator<<‘” (i hope that displays properly. we’ll see in a minute.. but yea, does anyone know how i’d accomplish this task?