Ask a Question related to Macromedia Director Basics, Design and Development.
-
Mintyman #1
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
-
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... -
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... -
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... -
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... -
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... -
Rob Dillon #2
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
-
Mintyman #3
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
-
Andrew Morton #4
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
-
Mintyman #5
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
-
Andrew Morton #6
Re: Copying files from project to hard drive?
>...The only way I can think of making it work is to copy the files across
Unfortunately (for your purposes), with WinNT/2000/XP the user may not have> to the computer and then I will know the exact path to the files.
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]).
It is included in the Lingo "the moviePath" which is always updated when the> Otherwise, i will not know the drive letter of the cd-rom drive.
projector starts.
Andrew
Andrew Morton Guest



Reply With Quote

