| View previous topic :: View next topic |
| Author |
Message |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Tue Mar 25, 2003 7:20 am Post subject: BLOWFISH Error 607s in combination with VDSZIP |
|
|
I am having problems with Error 607s using a combination of BLOWFISH and VDSZIP. My intention was to copy a database file to a local disk, zip it up and then encrypt it. I can't see anything wrong with the code, but all I get are error 607s.
Can anyone help?
Thanks in advance!
| Code: |
%%Key = XXXXXX
IF @FILE(%%Drive1\flight.ZIP)
FILE DELETE,%%Drive1\flight.ZIP
END
IF @FILE(%%Drive1\flight.XXX)
FILE DELETE,%%Drive1\flight.XXX
END
FILE COPY,%%Drive2\flight.mdb,%%Drive1\flight.bak
WAIT
ZIP ADD,%%Drive1\flight.ZIP,%%Drive1\flight.bak
WAIT
%T = @Blowfish(CryptFile,%%Key,%%Drive1\flight.ZIP,%%Drive1\flight.XXX)
|
_________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Mar 25, 2003 7:55 pm Post subject: |
|
|
I have never used the VDS ZIP DLL, but are you sure that the file exists
before you encrypt it?
BTW, this post was moved to "General Help".  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Alphonse VDS Pirate

Joined: 27 Jan 2003 Posts: 11
|
Posted: Tue Mar 25, 2003 8:45 pm Post subject: |
|
|
I tested it,
i have no error |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Mar 25, 2003 10:23 pm Post subject: |
|
|
Just an idea, but maybe the zip file's creation is not totally complete before
your script moves to encrypt the file. Maybe add a small WAIT before
encrypting the zip file.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Mar 25, 2003 10:46 pm Post subject: |
|
|
I agree Garrett. That's what I was kind of getting at in my first post.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Wed Mar 26, 2003 4:06 am Post subject: |
|
|
I have greatly extended the WAITs and it now seems to work, but as the size of the mdb file can vary greatly I wondered if there was any way to vary the wait to the size of the file to avoid making every user wait the time required for the largest of mdb files.
Thanks very much to everyone who suggested longer WAITs. _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Mar 26, 2003 7:05 am Post subject: |
|
|
I've been using VDS a lot in front-ends for various file processing stuff. Usually I make a loop
to wait for files, something like this:
| Code: |
:waitloop1
WAIT
if @FILE(%%file)
else
goto waitloop1
end
|
There are some caveats, though. Some progs will write the output file when they've finished, and
then this works just fine. Others will start out by writing an empty placeholder file with the right
name and then add to that until it's done - in that case the above method might fail because the file
will be present but perhaps it won't be finished...
So sometimes it will be useful to watch the output file size to see when it's done. Or use a command-line
utility that you can launch with RUN .... ,WAIT so your VDS program only continues when the other program
has finished.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Mar 26, 2003 7:45 am Post subject: |
|
|
Hmmmmmmmmmm..... I wonder if adding a "ADDCOMPLETE" event to
the dll would be possible? Anyone think that might be of use for such a
situation as what's being described here? If so, I'll ask the programmer
about this and see if it's possible to add that into the dll.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Wed Mar 26, 2003 10:05 am Post subject: |
|
|
| Quote: | Hmmmmmmmmmm..... I wonder if adding a "ADDCOMPLETE" event to
the dll would be possible? Anyone think that might be of use for such a
situation as what's being described here? If so, I'll ask the programmer
about this and see if it's possible to add that into the dll.
|
I, for one, would find it incredibly useful!
Cheers. _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
LOBO Valued Contributor


Joined: 14 Mar 2002 Posts: 241 Location: Wilmington, Delaware, USA
|
Posted: Wed Mar 26, 2003 12:37 pm Post subject: |
|
|
| Garrett wrote: | Hmmmmmmmmmm..... I wonder if adding a "ADDCOMPLETE" event to
the dll would be possible? Anyone think that might be of use for such a
situation as what's being described here? If so, I'll ask the programmer
about this and see if it's possible to add that into the dll.
-Garrett |
I agree this could be a very handy addition to the dll.
-Mark |
|
| Back to top |
|
 |
|