Qbasicnews.com
December 11, 2019, 06:43:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: undeletable EXE's  (Read 6266 times)
LPG
Member
*
Posts: 61

semper ubi sub ubi (always wear under wear)


« on: May 06, 2008, 01:53:05 AM »

I am running win ME with QB45 and I find that when I make an EXE it won't let me delete it. any copies I make are undeletable as well. I think it might have something to do with me deleting the OBJ files but are otherwise clueless?
Logged

WHILE RPG$ <> "complete" : make up silly excuses :WEND
zoasterboy
Guru
**
Posts: 295


Personal Text!


WWW
« Reply #1 on: May 07, 2008, 01:21:56 PM »

Could have something to do with permissions, are you running as the computers administrator with full permissions?

ME has lots of problems though, i would recommend finding a copy of XP and upgrading, or downloading the latest version of Ubuntu Linux for free and running it in DOSBox

http://ubuntu.com
Logged

-yah
LPG
Member
*
Posts: 61

semper ubi sub ubi (always wear under wear)


« Reply #2 on: May 09, 2008, 02:58:33 AM »

I have tryed UBUNTU but it runs slowly ( I only have 256 Mb RAM ). I have been thinking of upgrading to ME for a while. On the other hand it may be useful to make undeletable and unshiftable EXE's. I can't think of anything other than viruses.
Logged

WHILE RPG$ <> "complete" : make up silly excuses :WEND
Ralph
Ancient Guru
****
Posts: 544


« Reply #3 on: May 10, 2008, 04:52:22 PM »

I just "deleted" a qb45 .exe file with no .obj file, then restored it from the Recycle Bin, without a hitch.  The abscense of an .obj file shouldn't have anything to do with your problem.

When you try to delete a file by clicking on its icon. it will find the file by following the pata and name contained in the icon.  So... Try right-clicking on the .exe's  icon, then Properties.  Compare the path and file name with what you are seeing; if they don't match, that might be the problem.  If so, perhaps you can change the Properties path and name to match, and that will lwt you deleted it.
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
LPG
Member
*
Posts: 61

semper ubi sub ubi (always wear under wear)


« Reply #4 on: May 11, 2008, 01:57:23 AM »

That dosn't work Huh
it still comes up with the error "Cannot delete *****. Access denied. The source file may be in use."
the source file is not in use.
« Last Edit: May 11, 2008, 01:59:59 AM by LPG » Logged

WHILE RPG$ <> "complete" : make up silly excuses :WEND
Ralph
Ancient Guru
****
Posts: 544


« Reply #5 on: May 11, 2008, 03:18:19 AM »

Is it possible to grab it and drop it into another directory, say in the root directory, C:?  If so, you might try moving it and then deleteing it.  I can't think of anything else that might help you. Sad
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
LPG
Member
*
Posts: 61

semper ubi sub ubi (always wear under wear)


« Reply #6 on: May 11, 2008, 04:36:48 AM »

unfortunately I cannot move the EXE's either
Logged

WHILE RPG$ <> "complete" : make up silly excuses :WEND
roy
Member
*
Posts: 33


« Reply #7 on: May 11, 2008, 09:06:10 AM »

It is not a problem with ME because I can delete any .EXE  created by QB.
Try renaming the .EXE  from NAME.EXE to BAD.BAS and then delete BAD.BAS.
There are freeware programs such as Unlocker that will do the job but I think Unlocker only works with XP and 2000.
Logged
Ralph
Ancient Guru
****
Posts: 544


« Reply #8 on: May 11, 2008, 01:07:59 PM »

Two more ideas:

1. Make a TEST.TXT file in the same directory as your .exe file resides.  In the DOS-Prompt command line, try merging them, using:
COPY TEST.TXT+yourFile.exe TESTexe.TXT
Now, try deleteing TESTexe.TXT

2. Open a .bas file in a QB, and save it as a QuickBASIC file.   Open it in a word processor, say in NotePad.  Look at the first few characters.  Open the ofending .exe file in NotePad, and change the first few characters to match your previous file.  Save it as a .bas file.  Now, delete it.  (I hope it works.  Others who know more about file ID could do a good job, here.)
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
LPG
Member
*
Posts: 61

semper ubi sub ubi (always wear under wear)


« Reply #9 on: May 12, 2008, 02:43:48 AM »

To roy: I cannot rename files.  Huh

To Ralph:
with your first method it makes a copy with both files together. if i had test.exe and test.txt i now have test.exe, test.txt and testexe.txt.

I do not understand your second method, could you be a bit more specefic please?
Logged

WHILE RPG$ <> "complete" : make up silly excuses :WEND
Ralph
Ancient Guru
****
Posts: 544


« Reply #10 on: May 12, 2008, 12:36:04 PM »

O.K., my first method makes a new file, which, I assume, you can delete, but not the actual, offending one, so that the method fails.  Sad

My second idea is that, if you can open the bad file in QB, or in Notepad, or in Wordpad, or in Word, or in any other "applications" or program, you could then save it with the identical same name and extension, which would then overwrite the original file and, maybe, it would now be deleteable.  Give it a try!
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!