k really simple question here
why does this code not work in dos?
system("ping yahoo.com > temp.txt");
it will compile but gives me the error Bad parameter >
oddly enough though
a)ping yahoo.com > temp.txt
works fine from the dos console
b) system("ping yahoo.com");
works fine from my program
so anyone have any idea what on earth is wrong here?
Oh and btw all im trying to do is pipe the output of ping yahoo.com into temp.txt
argh... so annoying... anyone know?
why does this code not work in dos?
system("ping yahoo.com > temp.txt");
it will compile but gives me the error Bad parameter >
oddly enough though
a)ping yahoo.com > temp.txt
works fine from the dos console
b) system("ping yahoo.com");
works fine from my program
so anyone have any idea what on earth is wrong here?
Oh and btw all im trying to do is pipe the output of ping yahoo.com into temp.txt
argh... so annoying... anyone know?