IPCONFIG Command (almost the same as from Klainn)
Posted on 2006-05-24
I've already asked a similar question here some weeks ago but it seems that the answer you gave Klainn is the best for me.
Unlike Klainn I want to attach the txt file into a Field.
The txt file is created under the C drive --OK
A txt file is attached into the Field --OK
When I open the txt file under C, it shows the settings --OK
But when I open it on the Form the txt file is empty!
The attached file is called INFORMATION . TXT but when I open it shows a name like ~0719266.TXT and is empty as I said already.
Here is the code:
@Command([Execute]; "cmd"; "/C IPCONFIG.EXE /ALL > C:\\IPINFORMATION.TXT");
@PostedCommand( [EditInsertFileAttachment] ; "C:\\IPINFORMATION.TXT" );
Why is the attached file empty?