|
Home > Archive > dBASE Programming > June 2007 > Commands Within a WinZip Window
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Commands Within a WinZip Window
|
|
| Bob Buchanan 2007-06-10, 1:16 pm |
| When I update an installation, I upload copy of that clients system to my
server for them to download. However, sometimes I just send them an updated
EXE and ask that they overlay the current EXE. Some users are OK with that,
but others not so computer literate don't want to even try such a feat. For
those users I have written a simple PRG, then compiled it, then placed it in
a WinZip file as an attachment to an email I send to them. For example, here
is some PRG code:
**********
copy file rvsm.exe to C:\PROGRA~1\RVSPAC~1\rvsm.exe
copy file rvGlobal.mem to C:\PROGRA~1\RVSPAC~1\rvGlobal.mem
msgbox("Program Update OK . . .")
**********
I would then include the EXE from the above code (perhaps called,
UPDATE0611.EXE) plus the two files, RVSM.EXE and RVGLOBAL.MEM in the WinZip
file I attach and send to the user. The user then double clicks
UPDATE0611.EXE in the Zip window to do the update.
If I ONLY send one file, it has worked OK. However, if I include the second
file (in this case, RVGLOBAL.MEM) I get an error message when dbleClickiing
the UPDATE0611.EXE program file in the WinZip window. The message is "IN USE
BY ANOTHER, RVSM.EXE". If I click the "ignore" button in the error dialog,
it will go ahead and copy the MEM file.
BTW, I have done other stuff this way such as opening a DBF and modifying
fields, the opening another DBF and so forth. however -- COPY FILE TO chokes
if more than one line item is used. Everything else is close when running
the file -- have even rebooted to make sure. Running the PRG from within
dBASE works OK as written. Have also tried including the full path that
includes spaces -- and delimited with quotes.
Question: Why can I do this with one COPY FILE command, but not two?
Thanks.
Bob Buchanan
www.rvspacemanager.com
| |
| Geoff Wass [dBVIPS] 2007-06-11, 1:17 am |
| In article <aiTIvk3qHHA.2092@news-server>, rlbuch@compuserve.com says...
> When I update an installation, I upload copy of that clients system to my
> server for them to download. However, sometimes I just send them an updated
> EXE and ask that they overlay the current EXE. Some users are OK with that,
> but others not so computer literate don't want to even try such a feat. For
> those users I have written a simple PRG, then compiled it, then placed it in
> a WinZip file as an attachment to an email I send to them. For example, here
> is some PRG code:
>
> **********
> copy file rvsm.exe to C:\PROGRA~1\RVSPAC~1\rvsm.exe
> copy file rvGlobal.mem to C:\PROGRA~1\RVSPAC~1\rvGlobal.mem
>
> msgbox("Program Update OK . . .")
> **********
>
> I would then include the EXE from the above code (perhaps called,
> UPDATE0611.EXE) plus the two files, RVSM.EXE and RVGLOBAL.MEM in the WinZip
> file I attach and send to the user. The user then double clicks
> UPDATE0611.EXE in the Zip window to do the update.
>
> If I ONLY send one file, it has worked OK. However, if I include the second
> file (in this case, RVGLOBAL.MEM) I get an error message when dbleClickiing
> the UPDATE0611.EXE program file in the WinZip window. The message is "IN USE
> BY ANOTHER, RVSM.EXE". If I click the "ignore" button in the error dialog,
> it will go ahead and copy the MEM file.
>
> BTW, I have done other stuff this way such as opening a DBF and modifying
> fields, the opening another DBF and so forth. however -- COPY FILE TO chokes
> if more than one line item is used. Everything else is close when running
> the file -- have even rebooted to make sure. Running the PRG from within
> dBASE works OK as written. Have also tried including the full path that
> includes spaces -- and delimited with quotes.
>
> Question: Why can I do this with one COPY FILE command, but not two?
>
> Thanks.
>
> Bob Buchanan
> www.rvspacemanager.com
Bob,
I can't explain why this is happening.
In the long-term, maybe you should consider using Inno Setup or
something similiar to deploy your updates. It is something that the less
literate should be able to handle and it will handle the security issues
(etc) of WinXP SP2 and Vista.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
..|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
..|.|.| ---------------------------------------------------------- |.|.|.
..|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
|
|
|
|
|