FILECOPY works good if you use it in an activ script on start. It assumes the folder where ebook it's being unpacked.
However, if you use it in a non "on start" script, you need to specify the folder where the book is unpacked or it will not work, as it does not assume the default folder as the temp one.
Example: If you want to copy oldfile.gif to newfile.gif you must use: FILECOPY('graphok','{ebook}\oldfile.gif','{ebook}\newfile.gif',1)
If you just use: FILECOPY('graphok','oldfile.gif','newfile.gif',1) it will not work.
Carlos
Posted on: 10:29 am on February 18, 2003
EBookCompiler
If you don't specify the folder in FILECOPY, then I think it would use the current folder for the ebook process
This would probably vary while the ebook is running, between versions, etc. In other words, not something you can depend on being X at point Y (undefined behaviour). It's always risky to depend on undefined behaviour as otherwise your app can break between versions / people's systems behaving differently etc.
So always specify the folder name, and it will always work.
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures
Our sites use cookies, some of which may already be set on your computer. Use of our site
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.