Archive: Need script to copy/paste file


Need script to copy/paste file
I have been searching the forums and the help files for 2 days trying to find the answer to what I thought would be a very simple task.

What I need to do is create a script that will copy a file from an external source(eg on a CD or zip drive) to a pre-determined directory on the hard-drive.

My problem is that, due to bandwidth limitations, I am not permitted to embed the file into the installer.

The script is to be distributed as part of a zip file which will contain an empty file structure. Each office will then do their own downloads and "fill" the empty folders as per instructions issued to them.

Thinking about it, it would actually be exactly the same process as copying & pasting a "crack" to an illegal software or game download. (If you're into that sort of thing).

I have found numerous alleged examples of code that will supposedly do this, but nothing that makes the slightest bit of sense to me.

Before ppl jump all over me for not searching hard enough, I am mildly autistic and I readily admit that things very often get "lost in the translation".


Use CopyFiles.


Thanx Kichik.

I was looking in the wrong place. Could that also be done with vPatch?


How is vPatch related?


In my mind (such as it is! lol) I was trying to apply a update patch.

As I said in my first post things get lost in translation.

Sometimes words have an entirely different meaning for me than they do for everyone else which means it is frighteningly easy to confuse me.

This makes it extremely difficult for me to learn from books & help files. Whereas I can learn all there is to know from looking at a working example in just a few minutes.

Your help is genuinely appreciated :)


That's OK, I don't mind. But I still don't quite see what you're asking about. VPatch takes a patch file, the original file and combines the two into a new file. Non of those files are treated any differently than other files and can be extracted with File or CopyFiles.


Aaaaah! vPatch COMBINES the 2 files. I thought it REPLACED the file.
No problem .... it just means I really was looking in the wrong place! I was trying to do it with vPatch.
Just goes to prove "natural stupidity will beat artificial intelligence every time" - lol