S
Shahzaib17
Guest
i want to run few commands that needs wmic but don't want to use system because of two reasons
1)it open command prompt which i don't want to show to the user
2)it uses .txt file to write result into which is then get later fro this file
system("ipconfig > ip.txt");
system("wmic csproduct get uuid > Uuid.txt")
but i want to use pipes if possible so that i can get the following things without system()function in c++ and can directly store the result in variables without the need of opening files writing results into it and then get it from these files
1)Ipv4 Address
2)UUid
i want to use createprocess to retrieve above mentioned things
Continue reading...
1)it open command prompt which i don't want to show to the user
2)it uses .txt file to write result into which is then get later fro this file
system("ipconfig > ip.txt");
system("wmic csproduct get uuid > Uuid.txt")
but i want to use pipes if possible so that i can get the following things without system()function in c++ and can directly store the result in variables without the need of opening files writing results into it and then get it from these files
1)Ipv4 Address
2)UUid
i want to use createprocess to retrieve above mentioned things
Continue reading...