NewsArchive
12-05-2001, 12:00 AM
Hello-- In the script of my basic project in IS Dev 7.01, I'm checking for
the existence of some files on the end-user's system in the INSTALLDIR. If
the files exist, then I'm creating a directory inside their current
directory called "update" and copying those files there, then deleting them
from INSTALLDIR. I run seven iterations of this process, six of which
include wildcards -- for example:
CopyFile ( INSTALLDIR+"*.exe", INSTALLDIR+"update")
This works fine. However, the other situation is where a I copy a specific
filename over -- eg. myfile.txt.
I tried this: --it doesn't work.
CopyFile ( INSTALLDIR+"myfile.txt", INSTALLDIR+"update")
I tried this: --it doesn't work.
CopyFile ( INSTALLDIR+"myfile.txt", INSTALLDIR+"update\myfile.txt")
BUT, if I do something like this:
CopyFile ( INSTALLDIR+"myfile.tx?", INSTALLDIR+"update")
....that works fine.
How can I just grab that ONE file by name and copy it? In the two examples
above that DON'T work, the file DOES exist, I don't get any error message,
etc -- it just doesn't copy it. When I use the wildcard, it works fine.
Can someone enlighten me? Thanks in advance!
Regards,
Troy Miller
tmiller@dis1.com
the existence of some files on the end-user's system in the INSTALLDIR. If
the files exist, then I'm creating a directory inside their current
directory called "update" and copying those files there, then deleting them
from INSTALLDIR. I run seven iterations of this process, six of which
include wildcards -- for example:
CopyFile ( INSTALLDIR+"*.exe", INSTALLDIR+"update")
This works fine. However, the other situation is where a I copy a specific
filename over -- eg. myfile.txt.
I tried this: --it doesn't work.
CopyFile ( INSTALLDIR+"myfile.txt", INSTALLDIR+"update")
I tried this: --it doesn't work.
CopyFile ( INSTALLDIR+"myfile.txt", INSTALLDIR+"update\myfile.txt")
BUT, if I do something like this:
CopyFile ( INSTALLDIR+"myfile.tx?", INSTALLDIR+"update")
....that works fine.
How can I just grab that ONE file by name and copy it? In the two examples
above that DON'T work, the file DOES exist, I don't get any error message,
etc -- it just doesn't copy it. When I use the wildcard, it works fine.
Can someone enlighten me? Thanks in advance!
Regards,
Troy Miller
tmiller@dis1.com