CopyFile.htm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>CopyFile from$, to$</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. from$ = valid path/filename to the file to be copied <br />
  13. to$ = valid path/filename to copy the file to
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. Use this command to copy a file from one location to another. Perhaps you'll write your own installer and need to copy files from the installation folder to the installed location folder. Make sure you do your own validation to ensure that the files/paths are valid and accurate before executing this command.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/CopyFile.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. file$="c:autoexec.bat" <br />
  30. destination$="a:autoexec.bat" <br />
  31. <br />
  32. Print "Press any key to copy your Autoexec.bat file to floppy" <br />
  33. <br />
  34. WaitKey() <br />
  35. <br />
  36. CopyFile file$,destination$
  37. </td>
  38. </tr>
  39. </table>
  40. <br>
  41. <a target=_top href=../index.htm>Index</a><br>
  42. <br>
  43. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=CopyFile&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  44. </html>