Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Project hook: autobackup

Status
Not open for further replies.

hyonos

Technical User
Apr 2, 2003
46
0
0
IT
hi to all.
i have crete vcx based on project hook.
in the init i have this code for create autobackup file:

LOCAL mybackup, mydirtobackup
mybackup="c:\mybackup\software.rar"
mydirtobackup="c:\myproject\"

loshell = CREATEOBJECT("wscript.shell")
WAIT WINDOW "Waiting for backup..." NOWAIT
loshell.RUN("winrar a -ag_DD-MMM-YYYY_HH_MM -r -dh "+CHR(34)+mybackup+CHR(34)+;
" "+CHR(34)+mydirtobackup+CHR(34),8,.T.)

RELEASE loshell

now, i have put vcx in the project hook.
all work fine, but projects file (myproject.pjt myproject.pjx) generate error in rar file and don't be compressed...

can anyone help me?
 
I tend to agree with ramani on this one - not only are the project files not available, but the projecthook .vcx is also not available. Now if you can exclude these files or put them in a different directory from the rest of the project, then it should work.

Rick
 
Try using Winzip - This allows you to compress files which are open.

Dave Crozier
 
If you can afford it, get a CVS. You'll be happier in long run.

There might be some open source CVS's that will work with
with VFP, but I'm unsure. I use SourceSafe running on an
separate server.


Darrell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top