Dear Gregory,
Thanks for your help. The setfile create the batch and write dos command inside. The dos command create the txt file, but don't store the results inside it.
Another, i would like to know if there's no way to use relative pathname with the setfile command. I send to you the codes bellow and the attached application for help me more.
I tested your code on a Windows XP machine and it didn't work because the UTF-8 BOM (http://en.wikipedia.org/wiki/Byte_order_mark) gets written to the file (as of CSPro 5) and the DOS batch processor doesn't know how to handle that line of data. You can trick DOS by writing out a line that won't do anything, and then write out the important line:
filewrite(getm, "echo"); filewrite(getm, "getmac /fo list > getcode.txt");
Dear Gregory,
I would like to use the same logic we used on Windows on Android Tablets (as you know, this code is very useful for avoiding data dissemination on non authorized tablets). In find the code for Android, but there's problem to:
1.-Call the the codes/function as doing with DOS on Windows,
2.-Write the results to a txt file
I think it's will be useful and easy for coders to have a specific Cspro function to do that.
Thanks in advance,
HTUSER