I have two applications App1 and App2.
App1 is just checking for new version of App2.
If it finds newer version of App2 it will download App1 AND App2. (both of
them). That is what I am doing now in my application.
I am downloading from an FTP server and I can see download progress.
However, when the download is finished, App1 is not updated (which I
understand, because its file is being locked in the process of update).
(don't ask me why I download App1 then :)).
So, I can watch the download process of both App1 and App2, the App2 gets
updated (because it was not locked), App1 does not get updated (probably
because it was locked during the download).
My question is "If I can see download progress, what happens with the update
of App1?" Should not this pop up the warning box saying "File Access
Denied"? In my case it does not. Everything looks like it is downloading
App1 and overwriting it but when I run the code, I can see that what runs is
actually old App1.
Just an interesting thing, wondering what actuallly happens with the file
being downloaded.
Thank you,
--
Dino Buljubasic
Software Developer http://rivusglobal.com 12 1428
Dino,
This depends on your FTP process.
But this will of course never work
I think that the solution is as in all this cases to download it with
another name.
Putting in the register that it is new downloaded (that is my way doing it,
but it can be another way too of course).
Give the command over to the downloaded program.
Look in the register, copy the newone over the old one (renaming does not
work either)
Set the register back.
And give then the command back to that new one.
If you will kill the downloaded copied file is a matter of taste, I would
leave it.
I hope this brings you on the route.
Cor
When you say "Registar", are you thinking of registry? Sorry, don't get it.
I am probably going to do it so that App1 downloads App2 and App downloads
App1. that way, they'll download each other because they never run at the
same time.
However, I still don't understand what happens with the file that is
downloaded. It gets sent thru the wires for sure, I am just wondering what
OS or whatever does with it when it finds out that the file with the same
name already exists and that it is running.
Thanks,
--
Dino Buljubasic
Software Developer http://rivusglobal.com
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l... Dino, This depends on your FTP process. But this will of course never work I think that the solution is as in all this cases to download it with another name. Putting in the register that it is new downloaded (that is my way doing
it, but it can be another way too of course). Give the command over to the downloaded program. Look in the register, copy the newone over the old one (renaming does not work either) Set the register back. And give then the command back to that new one. If you will kill the downloaded copied file is a matter of taste, I would leave it.
I hope this brings you on the route. Cor
Hi Dino,
Yes I did mean registry (language error).
To find out what happens, is very easy to test.
Make a copy of a program
Start the program and try to copy the one you did copy over the running one
with explorer.
You normaly will see a text that it is impossible.
So that will throw an exeption in your program.
Cor
I don't get any exception though. It just shows that the file is being
downloaded but when I run it, the old version pops up
--
Dino Buljubasic
Software Developer http://rivusglobal.com
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader21.wxs.n l... Hi Dino, Yes I did mean registry (language error). To find out what happens, is very easy to test. Make a copy of a program Start the program and try to copy the one you did copy over the running
one with explorer. You normaly will see a text that it is impossible. So that will throw an exeption in your program. Cor
Did you make the ftp yourself?
Lots of it yes, I used lots of references and code from the internet.
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader22.wxs.n l... Did you make the ftp yourself?
I was thinking, do you have maybe a Try that you don't real Catch with an
exception.
I could make that mistake, you of course not, but still I ask it.
:)
o, no, I could make that kind of error easily, too.
Thanks
"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader20.wxs.n l... I was thinking, do you have maybe a Try that you don't real Catch with an exception. I could make that mistake, you of course not, but still I ask it.
why don't you let start the app2 after app1 and let app2 replace/update
app1? since app1 is replacing app2, let app2 replace app1 ..just a thought
:-)
"Dino M. Buljubasic" <di************ *@rivusglobal.c om> wrote in message
news:IyLbb.106$ UE6.81@edtnps84 ... I have two applications App1 and App2.
App1 is just checking for new version of App2.
If it finds newer version of App2 it will download App1 AND App2. (both
of them). That is what I am doing now in my application.
I am downloading from an FTP server and I can see download progress. However, when the download is finished, App1 is not updated (which I understand, because its file is being locked in the process of update). (don't ask me why I download App1 then :)).
So, I can watch the download process of both App1 and App2, the App2 gets updated (because it was not locked), App1 does not get updated (probably because it was locked during the download).
My question is "If I can see download progress, what happens with the
update of App1?" Should not this pop up the warning box saying "File Access Denied"? In my case it does not. Everything looks like it is downloading App1 and overwriting it but when I run the code, I can see that what runs
is actually old App1.
Just an interesting thing, wondering what actuallly happens with the file being downloaded.
Thank you,
-- Dino Buljubasic Software Developer http://rivusglobal.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: pythonUser_07 |
last post by:
Is this the correct place to post a jython question?
I posted the following in the jython group, but I figured I'd post here
too:
_________________________________________
I am assuming that the PythonInterpreter environment is not a unique
environment from within a jvm.
Here is some pseudo code to show what I am talking about
1) create a jython module file, lets call it "mytest"
|
by: ºa¤Ö |
last post by:
I find a interesting question, and I cannot solve it
@.@
If i want to insert unicode data, I need using recordset.addnew instead of
using "insert into table" query or "stored procedure"
All unicode data inserted into database through insert query or stored
procedure would become a question mark "?" no matter:
1. the field is nvarchar
2. the collpase is SQL_Latin_General_CP1_XX_XX" or
|
by: Dylan Phillips |
last post by:
A strang error is occurring when I run the following code:
SqlConnection c = new SqlConnection();
c.ConnectionString = "Initial Catalog=Northwind;user
id=sa;password=kat1ie;Data Source=server";
c.Open();
SqlCommand command = c.CreateCommand();
command.CommandType = CommandType.Text;
command.CommandText = "select Customers.customerid, customers.companyname, "
+
|
by: git_cs |
last post by:
Hey, guys and gals
Somedays ago, I had asked for the DES algorithm in C language.
Although I have written the algorthim in C myself, I am facing a
peculiar problem, which I hope some of u guys and gals solve.
I use Turbo C++ version 3.0 and WINXP as the operating system.
Pls observe the following program.
1 #include<stdio.h>
2 #include<conio.h>
|
by: Jax |
last post by:
I have this code, behold:
string message = "Are you sure? You will lose this
customer forever. (Well you'll have re-create from
scratch)";
string caption = "Delete";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result;
result = MessageBox.Show(this, message, caption, buttons);
if(result == DialogResult.Yes)
| |
by: Claude Yih |
last post by:
Hi, everyone. I noticed an interesting thing about fread() this
afternoon. Well, I can't see why so I post this message in the hope of
getting some explanation. Please help me.
I wrote the following code in Windows 2k and compiled it with the
gcc(version: 3.2.3) contained in MinGW:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
|
by: v4vijayakumar |
last post by:
Happened to see my old (last millennium) c code. Almost forgot that I
wrote it .
It is interesting. :-)
int sqrt(int no)
{
int t;
no = t * t;
return t;
}
|
by: Will Honea |
last post by:
I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table...
|
by: jacob navia |
last post by:
Buffer overflows are a fact of life, and, more specifically, a fact of
C.
All is not lost however. In the book
"Value Range Analysis of C programs" Axel Simon tries to establish a
theoretical framework for analyzing C programs. In contrast to other
books where the actual technical difficulties are "abstracted away",
this books tries to analyze real C programs taking into account
pointers, stack frames, etc.
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |