forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


BLOWFISH Error 607s in combination with VDSZIP

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Tue Mar 25, 2003 7:20 am    Post subject: BLOWFISH Error 607s in combination with VDSZIP Reply with quote

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
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Mar 25, 2003 7:55 pm    Post subject: Reply with quote

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". Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Alphonse
VDS Pirate
VDS Pirate


Joined: 27 Jan 2003
Posts: 11

PostPosted: Tue Mar 25, 2003 8:45 pm    Post subject: Reply with quote

I tested it,
i have no error
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Mar 25, 2003 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Mar 25, 2003 10:46 pm    Post subject: Reply with quote

I agree Garrett. That's what I was kind of getting at in my first post. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Mar 26, 2003 4:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Mar 26, 2003 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Mar 26, 2003 7:45 am    Post subject: Reply with 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.

-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
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Mar 26, 2003 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Wed Mar 26, 2003 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group