Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem with .EXEs

Problem with .EXEs

Problem with .EXEs

Ok first off my program runs fine in the QBasic environment and as a stand-alone executable.  However when I try to move the executable from the default folder (It always puts it in the same directory as QB) it says that it is in use by another program or process..... It also won't let me delete the program after I've made it an executable.  I am currently using Windows XP Professional.  Any help would be greatly appreciated I would really like to be able to move my program!!  

RE: Problem with .EXEs

now is this Qbasic or QuickBasic ?

It could be that you don't close all files and/or you are not ending the program correctly.

There are some issues apparently with XP as MS moves away from it. It is getting harder to run and some things are
all but impossible it seems to achieve on xp.

Are you sure it is stand-alone (if quickbasic) or does it
ask for the run-time module.

Of course without the code, it's all speculation.

RE: Problem with .EXEs

I wrote it and compiled it in QuickBasic 4.5 as a stand alone executable.  The only way I can delete it is to go into safe-mode's command prompt and delete it.  It is just a simple demo of the kill command.... I will post the code if necessary... Do you think this is just an example of XP's poor DOS emulation????

RE: Problem with .EXEs

I've never heard of that happening unless somehow the program was changed to a system or something attribute.

You can't delete it through windows explorer either ?
If not, that is strange.

RE: Problem with .EXEs

No I can only delete it in safe-mode.... It is very strange....

RE: Problem with .EXEs

why not try
attrib progname.exe

to see what attributes it has

RE: Problem with .EXEs

I've encontered this problem before it is not a problem with qbasic - it is either xp windows restore or a virus scanning program you are running(most likely this) -
you can download this program:
After you download the program you can go to search and type the program name - once it finds the program(it will show you the program that is currently accessing it)
select were it shows the your programs name then right click and go to close handle
then you should beable you move/delete the file

%, 2004

RE: Problem with .EXEs

Thank both of you guys you both helped me sooooo much!!! The QuickBasic community really is nice....

RE: Problem with .EXEs

Did you compile it as a stand alone .exe or one that requires BRUN45?

RE: Problem with .EXEs

I'm having the same problem with a compiled Qbasic 4.5 exe.  None of the solutions posted in this thread have worked.  I cannot delete it in Safe Mode.  Any ideas?

RE: Problem with .EXEs

what is the exact message you're receiving when trying to delete the file Wyloch

RE: Problem with .EXEs

Cannot delete: it is being used by another process or program.

RE: Problem with .EXEs

perhaps not all files are being closed.

RE: Problem with .EXEs

Ah, no.  This is after several restarts, both normal and in safe mode.  It's never even being opened, so there's nothing to close in the first place.  It seems to have attached itself to explorer.exe as a "handle."  I tried the utility suggested earlier in this thread, and it does kill the handle (temporarily), but I STILL can't delete the .exe!

RE: Problem with .EXEs

try to delete the file in commandline safemode
in this mode explorer doesn't even load

RE: Problem with .EXEs

doesn't work

RE: Problem with .EXEs

here is a solution that will work but might be overkill but it will work

go to this url download the iso for knoppix
burn the iso to a cd
boot your computer to the knoppix cd
it will boot up into a gui - a windows like environment
your harddrives and cdroms will appear on the desktop
open the drive your file is located on find the file delete it
then you can press ctrl+alt+del once to shutdown the gui and restart the computer

%, 2004


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close