ChangeDir.htm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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>ChangeDir directory/path</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. directory/path = full path to directory/folder
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This command will change the currently selected directory for disk operations, useful for advanced file operations. Use CURRENTDIR$() to see what the current directory is. <br />
  21. Use a directory/path of ".." to change to the parent of the current directory, unless you are at the root directory of the drive, then no change happens.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/ChangeDir.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. ; ChangeDir example <br />
  30. <br />
  31. ChangeDir "c:winntsystem32" <br />
  32. Print "The folder has been changed to: " + currentdir$()
  33. </td>
  34. </tr>
  35. </table>
  36. <br>
  37. <a target=_top href=../index.htm>Index</a><br>
  38. <br>
  39. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=ChangeDir&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  40. </html>