FORGET IT - I found the problem. After I delete Uninstall.exe, I am still in the Program Files/MM folder!! So being in that folder obviously prevents me from deleting it later in my .BAT file.
Wow - sorry for the wild goose chase fellas!
-Tony
Okay, here's the official scoop:
"
C:\Program Files\MegaMeeting>rmdir "C:\Program Files\MegaMeeting"
The process cannot access the file because it is being used by another process.
"
So there you have it. For some reason, even though my Uninstall.exe has finished running, Windows still...
Okay, there's definitely something deeper going on here. Zathras, your theory that "Perhaps the .exe is still in the stack while the .bat is running" is one I need to check out. I have ruled out that it has anything to do with the explorer window being open or having the focus, as I have tried...
Hi,
Okay: We all know that someone cannot currently be 'using' the directory one is trying to delete in order to be able to delete it, correct? But "not currently using" does not include having it open in Windows explorer, right? Because I know I can delete a folder in a DOS window and...
Zathras,
Which version of my fiUninst.bat were you using - the one with or without the ping delay? Whatever it was, it deleted the folder, huh? Hmmm. Well, let me review and see if I missed informing you guys about anything.
Okay, so I have an Uninstall.exe file that a user must click...
Great input guys! Thanks. Here is where I am so far:
Zathras - I was thinking along exactly the lines you were, so I implemented a ping-based delay, like this:
:Repeat
del "C:\Program Files\MegaMeeting\Uninstall.exe"
if exist "C:\Program Files\MegaMeeting\Uninstall.exe" goto Repeat...
Okay Guys,
I always stay on topic (Delphi-related) here, but after having scoured the forums for a DOS-specific area to post my question and not finding one, I am posting here. My app is written in Delphi, but that really has nothing to do with the question, so please have mercy on me. :)...
Hello All,
Trying to implement global exception handling in a service, but I can't seem to get it to work. Is there something I'm missing?
I am trying to do the following:
ApplicationEvents := TApplicationEvents.Create(nil);
ApplicationEvents.OnException := LogException;
in my...
whosrdaddy,
Thanks for confirming that for me. I thought that was the case. You could use Delphi, provided you did the whole thing in Win32 API calls, right? I understand, though, that there are much more appropriate tools for this, like you said.
-Tony
Hello All,
Just wanted to ask a question and get a general read on the situation. How easy/hard is it to write a VxD, in general, I mean? I know there are simpler and more complex ones, but is this something a beginner at Windows programming should get into? I am getting the feeling that...
Hi Guys,
I am using Delphi 7 Enterprise, and I cannot find BRCC32 in my bin directory. Are things done a different way in Delphi 7? I've been using the Image Editor to edit .res files, but now I want to add a JPEG resource, and want to make my own .rc to compile into a .res. Can I obtain...
Well, for anyone who is interested, I found a way to get around the need for using a ReadLn, but it is only useful for people in certain circumstances. The circumstances, to be brief, are ones in which you are willing or able to put an IdHTTPServer into the code for your TCP server. Doing...
Hello All,
I have a client/server pair of programs in which the client makes a connection to the server, and then the connection can potentially lie dormant for a time until commands are sent back and forth. During this dormant state, I want to be able to fire a TCP-client-disconnected...
Buho,
Great. I had a theory (but did not know the specifics to cache it out) that the presence of another ShowMessage kicked something into gear which allowed the other to be processed and displayed. Those 'specifics' obviously involve the message queue.
-Tony
Buho,
No, I said that the working version replaces the while loop with a simple ShowMessage, like this:
This is the working version:
program tt;
uses
Dialogs, Classes;
type
TMyThread = class(TThread)
protected
procedure Execute; override;
end;
var
SysTrayThread...
Buho,
That's an interesting analysis, because when I simply replace my 'while' loop with another 'ShowMessage', everything works as expected!!
This would seem to indicate that:
a) I do not need TApplication explicitly instantiated;
b) I do not need a main form, and
c) I don't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.