05-09-2007 07:43 AM
05-09-2007 07:59 AM
if mac2key is an executable that you just want to run and not modify, you can do the following:
system("mac2key.exe 00:13:0a:00:01:05 > output.txt");
The > sign rediects the programs output to a file. You specify the filename (example output.txt) and path to be whatever you want. You can then read that file (fopen(), fscanf(), etc.) to get the key in your CVI program.
05-09-2007 08:01 AM - edited 05-09-2007 08:01 AM
Message Edited by jr_2005 on 05-09-2007 02:02 PM
05-11-2007 05:49 AM
I ran the code and it creates a blank text file. Help!!!
05-11-2007 06:00 AM
I also pasted the code in the command line and it works fine but it does not work when I run it from CVI. The mac2key.exe file and the txt file are in the C: directory.
system("C:\\mac2key.exe 00:13:0a:00:01:05 > c:\\output.txt");
05-11-2007 06:21 AM
05-11-2007 10:22 AM
That did the Trick!
Thank You!
Jon K.