[Javascript] copying a file
Parkes, Rohan
parkesr1 at anz.com
Mon Aug 6 23:08:36 CDT 2001
According to the documentation, the target can be a folder. This must be the
case, because you can use wildcards to copy multiple files using this
method.
I'm not sure that it's correct to return the method to a variable, though -
the doc. doesn't show that in any examples, and I don't know what you would
get back, especially if you copies multiple files.
Also, of course the target folder has to exist - the copy method won't
create it.
Rohan Parkes
-----Original Message-----
From: Rodney Myers [mailto:rodney at aflyingstart.net]
Sent: 07 August 2001 07:30
To: Javascript List
Subject: Re: [Javascript] copying a file
Andrew I notice that your line appears to have a folder name as a
target.
I see in my own old code that I always appear to build up a full target
file path and name with the path in the same format as you show for the
source file.
Try that.
Rodney
PS. I read your message at
http://groups.yahoo.com/group/javascript/message/12273
I am watching the list via that egroup after the traumas of last
weekend. I suspended mail delivery from the list. So if I take longer to
reply than of yore that is the reason. (is it safe to come out yet?!)
> i'm trying to copy a file using ActiveX file system object. But when I do
it
> gives me an error, "permission denied". I can copy folders with no errors.
> Does anyone have any ideas why i can't copy files? The line that does the
> copying is:
>
> html_file =
> obj_fso.CopyFile("C:\\demo\\d2k\\equote\\main.htm",folder_loc,true);
>
--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/
Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770
Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list