F
fitwell
(at least as far as I can see).
Here's what I found in the help file under "FileCopy":
"Copies one or more files.
FileCopy ( "source", "dest" [, flag] )
...
Example
FileCopy("C:\*.au3", "D:\mydir\*.*")"
Only a slightly different from a bat though I can see line
wrap issues might not be such an issue as in batch code as
commands encased in parantheses.
Yes, that is true, I looked into it, too. There is no way to use
just one command to group a set of user-specified files and with
different extension in a simple, beginner's, way.
BTW, did you see the code I sent you here:
http://www.talkaboutshareware.com/group/alt.comp.freeware/messag
es/322248.html
No, I didn't see this. Did you post that messsage here, originally?
(I give you this link because the post there has a nicer format
than google and is easier to read)
I use Agent said:I think a easier way to do it is to specify the filenames as
variable (e.g., define something like $n , $n+1...,) and also
use the same technique to instruct the script to read the
specific lines on the file (where you have entered the file
path,) e.g., something like filereadline then $l, $+1... and
then use some kind of looping to make recursive use of the
function.
Your coding is absolutely super! The concept is ingenious. The
coding goes in one file, the AI one. Then the files to back up are
typed up in a separate file you've called "backupjob.txt", and it's
just a question of putting each pathname on a separate line. That's
it! So the text file is all that needs maintaining! Talk about easy!
It did take me a bit to get it to work because of one thing, though,
and I was wondering if you had the same problem if you tested this - I
had entered the pathnames in regular LFN format initially but AI
didn't seem to like that. But when I then just put them in DOS 8.3,
it worked fine. This is perfectly fine as is, _but_ if there's a way
to use LFNs with this AI file, it would be neat to know how. LFNs
allow one to actually know the file we're backing up in each line,
something that can be tough to figure out from the 8.3 format <g>.
p.s., the backups don't always go smoothly. Just wanted to report
that it "misfires" for some reason. It seems to miss files every once
in a while. But I'll be testing it fairly extensively and will see if
it does this consistently.
p.p.s., AutoIt v3 also came with AUT2EXE so I converted the au3 file
to an exe. It works as a standalone just fine.
p.p.p.s., with your permission, I'd like to include the code for this
backup file that you've given me. If you okay this, I'll post it
here.
This is just so totally awesome. What I also found neat is how you
coded AI to detect if Outlook is running or not and that it prompts
for user to shut it down if it is. Kewl.
Yet since I am not fluent in Autoit yet, I did not try to do it
in the script I show you. But you might want to look into it.
You lost me here said:Yes it is. BTW,I download the GUI beta version and have been
trying to make a GUI for the piece a wrote. It is really coming
a long. Autoit3 is really a powerful tool. I have not arrived a
public release yet, but you can see a screenshot for what it
might be looked like here, just to see how powerful autit3 can
be:
http://home.earthlink.net/~ringomei/updater_screenshot.jpg
And you see that it would not be difficult to create some kind
of GUI for a file backup program with autoit either.
![]()
Awesome. Can't wait till that comes out! Hopefully it'll still be
freeware though. <fingers crossed>
Thanks so much for this!