home *** CD-ROM | disk | FTP | other *** search
/ Stickerpedia Stickerbook / Stickerbook.iso / pc / DATA / main.dxr / 00002_Script_2 < prev    next >
Text File  |  2003-03-24  |  4KB  |  115 lines

  1. --\
  2. file copy
  3.  
  4.  
  5.  
  6. global gWhichCD
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. --This is the accompanying CD for 3 Children Stickerbooks:
  17. --
  18. --- Dinosaurs
  19. --- Animals
  20. --- Oceans & Rivers
  21. --
  22. --To cut costs, there will only be ONE CD for all three books, containing 3 picture libraries, 1 for Dino's, 1 for animals and 1 for Oceans. 
  23. --However, the user will only be able to access 1 library through a password printed in the book he has aquired. 
  24. --
  25. --
  26. --PASSWORDS are:
  27. --
  28. --for Dinosaurs
  29. --REPTILE
  30. --
  31. --for Animals
  32. --TIGER
  33. --
  34. --for Oceans & Rivers
  35. --
  36.  
  37. -- baCopyFile
  38. --Platform: Windows and Macintosh
  39. --Description: baCopyFile copies a file.
  40. --Usage: Result = baCopyFile( SourceFile , DestFile , Overwrite )
  41. --Arguments: String, String, String.
  42. --SourceFile is the file to copy.
  43. --DestFile is the name to copy it to.
  44. --Overwrite determines how the copy is done. Can be:
  45. --"Always" always copies the file
  46. --"IfNewer" copies the file if SourceFile is newer than DestFile
  47. --"IfNotExist" copies only if DestFile does not already exist
  48. --Returns: Integer.
  49. --Returns 0 if the file was copied successfully, otherwise one of these:
  50. --1 Invalid Source file name
  51. --2 Invalid Dest file name
  52. --3 Error reading the Source file
  53. --4 Error writing the Dest file
  54. --5 Couldn't create directory for Dest file
  55. --6 Dest file exists
  56. --7 Dest file is newer that Source file
  57. --Examples: Director:
  58. --set OK = baCopyFile("c:\data\student.dat", "c:\data\backup\student.dat", "IfNewer")
  59. --Authorware:
  60. --OK := baCopyFile("c:\\data\\student.dat", "c:\\data\\backup\\student.dat", "IfNewer")
  61. --Notes: By default, this function will not overwrite an existing file if that file is marked as
  62. --read-only. However, by adding "+" to the "Always" and "IfNewer" options ( eg
  63. --"Always+" or "IfNewer+"), the files will be overwritten if they are read-only.
  64. --A return value of 6 (Dest file exists) can only be returned when Overwrite is
  65. --"IfNotExist".
  66. --A return value of 7 (Dest file is newer than Source file) can only be returned when
  67. --Overwrite is "IfNewer". The other return values can be returned for all Overwrite
  68. --options.
  69. --The "IfNewer" option operates as follows on Windows: if both files have internal
  70. --version numbers, then these numbers are used for comparison, otherwise the
  71. --dates of the two files are used for comparison. On Macintosh, only the file dates
  72. --are used for comparison.
  73. --The DestFile must contain the full name of the file, not just the name of the folder it
  74. --is being copied to.
  75. --See also: baCopyXFiles
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. --GetFolder
  84. --Platform: Windows
  85. --Description: baGetFolder displays a directory dialog box and returns the folder selected..
  86. --Usage: Result = baGetFolder( StartDir, Instruction, Flags, Caption, X, Y )
  87. --Arguments: String, string, integer, string, integer, integer.
  88. --StartDir is the initial directory. Use "" for the current directory.
  89. --Instruction is the instruction to display to the user.
  90. --Flags modifies the behaviour of the dialog.
  91. --Caption is the caption of the dialog.
  92. --X is the horizontal position of the dialog.
  93. --Y is the vertical position of the dialog.
  94. --Returns: String.
  95. --Returns the folder selected, or "" if the user cancelled.
  96. --Examples: Director:
  97. --set folder = baGetFolder( "c:\temp", "Please select a folder to install into:", 1,
  98. --"Select a folder", -1, 0 )
  99. --Authorware:
  100. --folder := baGetFolder( "c:\\temp", "Select installation directory", 0, "", 200, 200 )
  101. --Notes: The flags argument allows you to change the way the dialog box looks and
  102. --behaves. Currently, only one value is defined.
  103. --1 ODN_EXPLORER
  104. --Makes the dialog box a 32 bit Explorer style. If this style is not available, for example
  105. --if running under Windows 3.1, then a 16 bit style dialog will be shown. The 16 bit
  106. --Xtra/UCD ignores this style - it will always show the 16 bit style dialog.
  107. --2 ODN_NEWBUTTON
  108. --Displays a ëNewí button to allow the user to create a new folder. This style is only
  109. --available with the 16 bit style dialog. It cannot be combined with ODN_EXPLORER.
  110. --The Caption argument is only used if a 32 bit dialog box is used. If it is an empty
  111. --string, then the default "Browse for Folder" will be displayed.
  112. --The X and Y values are the number of pixels from the top left corner of the screen.
  113. --Set X to -1 to position the dialog in the center of the calling Director/Authorware
  114. --window. Set X to -2 to position the dialog in the center of the screen.
  115.