Name DataType Subtype Length XMLTEST XMLport XMLTest TAM Codeunit 3-Tier Automation Mgt. WSH Automation 'Windows Script Host Object Model'.FileSystemObject TempFileName Text 1024 NewFileName Text 1024 InFile File //Generate the file. FileName := 'test.txt'; InFile.CREATE(Filename); InFile.CREATEOUTSTREAM(XmlOutStream); XMLTest.SETDESTINATION(XmlOutStream); XMLTest.EXPORT; InFile.CLOSE; CLEAR(XmlOutStream); //Move the file to the destination folder. NewFilename := 'H:\test-xmlport.txt'; //H:\ or \\servername\folder TempFileName := TAM.DOWNLOADTEMPFile(FileName); CREATE(Wsh,true,true); WSH.MoveFile(TempFileName, NewFileName) CLEAR(WSH);
Comments
Regards
http://www.AcumenConsulting.co.nz