Copying files from project to hard drive?

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default Copying files from project to hard drive?

    Hi,

    Can someone please tell me how to copy a file to a folder on a hard drive on
    starting a projector? I need to copy across some HTML files into a temporary
    folder so I can then directly reference their location within the project.
    Relative paths dont work.

    Thanks,

    Mintyman


    Mintyman Guest

  2. Similar Questions and Discussions

    1. How can I play SWF files off my hard drive?
      Hey, I have installed Flash 8 on my laptop and although it works fine for flash on websites, I can't play SWF files on my hard drive. It appears...
    2. copying dvd's to hard drive
      I just bought a dvd drive and I want to copy some of my movies to my hard drive so that I don't have to carry them while I travel... So, I go to do...
    3. copying files from CD to hard disk
      Hi guys, Can any one let me know how to copy files from CD to hard disk using lingo or by any other means. The file should get copied as soon as...
    4. Copying images from Cd to hard drive
      It has been quite a long time since I have authored something. I now have a project where I want to show a contact sheet of images - if the user...
    5. how hard to replace titanium internal hard drive? How to cloneold hard drive onto it?
      Hi all - I have a 2001 titanium laptop with a 20 Gig hard drive. The thing is getting too full and I'm toying with the idea of getting a bigger...
  3. #2

    Default Re: Copying files from project to hard drive?

    One way to do this is to use the fileIO Xtra's getOSDirectory function
    to find the startup drive. Then you can use the file Xtra to create a
    folder on that drive and then copy the file(s) to that drive. You can
    also use file Xtra to tell you if there's enough room to copy the
    files.

    But if all you need is a full path to a file or files on the CD then
    you can just use the moviePath to provide the first part of the path.
    The moviePath will give you the path to the current movie, just add the
    folder and file name to that path.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #3

    Default Re: Copying files from project to hard drive?

    Hi Rob,

    I am afraid I am pretty new to all of this. I have tried a couple of things
    but can only create a blank file of a name i choose:

    global myfile

    set myfile = new(xtra "fileio")

    createFile(myfile, "C:\myfile.htm")

    Would you be so kind as to tell me the code I would need to copy an existing
    file I will provide at the root level of my project (test.htm) to a
    designated location of the PC?

    I would be very grateful.



    "Rob Dillon" <rob@ddg-designs.com> wrote in message
    news:181220030807169325%rob@ddg-designs.com...
    > One way to do this is to use the fileIO Xtra's getOSDirectory function
    > to find the startup drive. Then you can use the file Xtra to create a
    > folder on that drive and then copy the file(s) to that drive. You can
    > also use file Xtra to tell you if there's enough room to copy the
    > files.
    >
    > But if all you need is a full path to a file or files on the CD then
    > you can just use the moviePath to provide the first part of the path.
    > The moviePath will give you the path to the current movie, just add the
    > folder and file name to that path.
    >
    > --
    > Rob
    > _______
    > Rob Dillon
    > Team Macromedia
    > [url]http://www.ddg-designs.com[/url]
    > 412-243-9119
    >
    > [url]http://www.macromedia.com/software/trial/[/url]

    Mintyman Guest

  5. #4

    Default Re: Copying files from project to hard drive?

    > Relative paths dont work.

    Then give it an absolute path by using the moviePath:-

    gotoNetpage("file:///" & the moviePath & "htmldocs\index.html")

    Andrew
    Andrew Morton Guest

  6. #5

    Default Re: Copying files from project to hard drive?

    I am actually using an Xtra called 'WebXtra'. In order to make it work I
    have to tell it a URL location. Therefore, it does not understand Lingo
    code. The only way I can think of making it work is to copy the files across
    to the computer and then I will know the exact path to the files. Otherwise,
    i will not know the drive letter of the cd-rom drive.


    "Andrew Morton" <akm@in-press.co.uk.invalid> wrote in message
    news:brsdg6$5a9$1@forums.macromedia.com...
    > > Relative paths dont work.
    >
    > Then give it an absolute path by using the moviePath:-
    >
    > gotoNetpage("file:///" & the moviePath & "htmldocs\index.html")
    >
    > Andrew

    Mintyman Guest

  7. #6

    Default Re: Copying files from project to hard drive?

    >...The only way I can think of making it work is to copy the files across
    > to the computer and then I will know the exact path to the files.
    Unfortunately (for your purposes), with WinNT/2000/XP the user may not have
    access to an arbitrary location on their HD. Even with W98/ME they could be
    running on a dual-boot system and their HD could be anything from C: to Z:. You
    would have to get the user's temp folder by using an xtra like fileXtra4
    ([url]http://kblab.net/xtras[/url]).
    > Otherwise, i will not know the drive letter of the cd-rom drive.
    It is included in the Lingo "the moviePath" which is always updated when the
    projector starts.

    Andrew

    Andrew Morton Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139