MoveExternalFile.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="MoveExternalFile">
  5. <title>MoveExternalFile</title>
  6. <para><emphasis role="bold">STD.File.MoveExternalFile<indexterm>
  7. <primary>STD.File.MoveExternalFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.MoveExternalFile</primary>
  10. </indexterm><indexterm>
  11. <primary>MoveExternalFile</primary>
  12. </indexterm>(</emphasis> <emphasis> location, frompath, topath </emphasis>
  13. <emphasis role="bold">)</emphasis></para>
  14. <informaltable colsep="0" frame="none" rowsep="0">
  15. <tgroup cols="2">
  16. <colspec colwidth="80.50pt" />
  17. <colspec />
  18. <tbody>
  19. <row>
  20. <entry><emphasis>location</emphasis></entry>
  21. <entry>A null-terminated string containing the IP address of the
  22. remote machine.</entry>
  23. </row>
  24. <row>
  25. <entry><emphasis>frompath</emphasis></entry>
  26. <entry>A null-terminated string containing the path/name of the file
  27. to move.</entry>
  28. </row>
  29. <row>
  30. <entry><emphasis>topath</emphasis></entry>
  31. <entry>A null-terminated string containing the path/name of the
  32. target file.</entry>
  33. </row>
  34. </tbody>
  35. </tgroup>
  36. </informaltable>
  37. <para>The <emphasis role="bold">MoveExternalFile </emphasis>function moves
  38. the single physical file specified by the <emphasis>frompath</emphasis> to
  39. the <emphasis>topath</emphasis>. Both <emphasis>frompath</emphasis> and
  40. <emphasis>topath</emphasis> are on the same remote machine, identified by
  41. the <emphasis>location</emphasis>. The dafileserv utility program must be
  42. running on the <emphasis>location</emphasis> machine.</para>
  43. <para>Example:</para>
  44. <programlisting format="linespecific">IP := '10.150.254.6';
  45. infile := '/c$/training/import/AdvancedECL/people';
  46. outfile := '/c$/training/import/DFUtest/people';
  47. STD.File.MoveExternalFile(IP,infile,outfile);</programlisting>
  48. </sect1>