bwk5502
09-05-2000, 01:27 AM
This may be a dumb question, but how does one delete the exe file created by VB. Even though all programs are shut down, I get a message that the file may be in use. ???
Cannot be deletedbwk5502 09-05-2000, 01:27 AM This may be a dumb question, but how does one delete the exe file created by VB. Even though all programs are shut down, I get a message that the file may be in use. ??? neon 09-05-2000, 06:59 AM if you are running the program that you are trying to delete & you had a line in the code like: kill app.path & app.EXEname then you would get an deletion error error. i encountered this when i was trying to write an uninstall app for my game but i figure you just send the install log to an uninstall program & it does it all for you... hope i could help... - Neon [http://www.alien69.org/] I like Pizza. bwk5502 09-05-2000, 10:55 AM Everything is shut down except windows desk top and the windows explorer. ????? I even went to the task manager to make sure. Still can't delete the exe files created by VB. I created another exe file using VB....can't delete it either. Hey! Problem solved. I rebooted my computer, and finally I can delete the monster files. johnjr 09-05-2000, 02:15 PM an easier way is to go into dos and just deltree the folder or delte the .exe files.... john bwk5502 09-05-2000, 06:06 PM If my Windows 2000 has dos, I don't know how to access it. I could do that in 95 and 98. bwk5502 09-10-2000, 02:17 AM This is my last problem to solve for this project, I hope. If I run the exe created for my project, it works fine with no problems what so ever. Now, if I exit my program and try to uninstall it, I get a message that the file cannot be deleted. From this, I assume that somehow the file did not close. If I reboot the system and uninstall before running the project exe, then I can uninstall with no problem. My program uses the standard Form_QueryUnload subroutine with an end statement at it's end. Can this routine exit without all files being closed? Even at that, I am sure that I closed all files before then. Can you help me with this problem? Thanks cbrewer 09-10-2000, 12:24 PM Try closing your program with this Dim f as form For Each f in forms unload f Next "End" leaves things hanging. Chuck Sinister 09-10-2000, 05:03 PM No actually, you have it backwards, "<font color=blue>Unload</font color=blue> Me" just terminates a single form and leaves the rest of the project open. Whereas "<font color=blue>End</font color=blue>" will terminate the entire project. Trust me on this one, I use them both alot. cbrewer 09-10-2000, 05:06 PM Thats true, but my previous post doesn't say unload me. Read the recommended way to close programs in the Microsoft Visual Basic Programmers Guide. Chuck bwk5502 09-10-2000, 08:11 PM Okay folks! I discovered that I had the following in my Form_QueryUnload: If Not bDirty Then Exit Sub I changed the statement to: If Not bDirty Then End Now, after several hours of testing, I think that all is well. Thank you for your replies. Bil cbrewer 09-10-2000, 10:47 PM bwk, All may work fine with that, but using the end statement does not release any of the resources which are being used. If you use End to end your program, you should prior to that, unload every object that is using resources. If you make it a practice to end everything without unloading, sometime or another you will find your computers resources running low with nothing running. Chuck bwk5502 09-11-2000, 10:03 PM Chuck I put the Unload f stuff in as you suggested. Still works so I guess it's okay. Better safe than sorry. Thanks, I have a new problem with Windows 95 and ActiveX that I just posted. See what you think. Bil |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum