Visual Studio deleting .exe files in \Debug\ folder.

  • Thread starter Thread starter Mholnic-
  • Start date Start date
  • Tags Tags
    files Visual
Click For Summary
The discussion centers around a persistent issue with Visual Studio 2010 Ultimate, where project executable files (.exe) are disappearing after debugging. The user experiences an error stating that the program cannot be found, despite the .exe file being present initially. This problem has been ongoing since the software was downloaded, leading to frustration as the user frequently has to recreate projects to regain the .exe files, only for them to vanish again. Suggestions include checking file attributes, such as setting the .exe to read-only or system, to potentially prevent deletion and prompt the user if an attempt is made to remove the file. The user is seeking solutions or insights from others who may have faced similar issues.
Mholnic-
Messages
43
Reaction score
0
(Programming and VS newb here.)

I'm hoping someone has had (and fixed!) this problem. I'm working on a project for my CS-150 class but I'm having some tech troubles. I'm running Visual Studio 2010 Ultimate (downloaded via MSDNAA) and it (or something else) seems to be deleting my project.exe files.

When I hit Debug, it runs through to the end and then gives me the following:
"Unable to start program C:\Users\Admin\Documents\Visual Studio 2010\Projects\projectname\Debug\projectname.exe" "The system cannot find the file specified."

I go to the location and sure enough, the exe file is gone. But it was there before. I've been getting this error since I downloaded it, and have gotten into the habit of confirming the exe file's existence after the first debug. It'll work fine for a bit and then *poof* the .exe disappears. I have no idea where it goes, or how to get it back. I'm essentially being forced to delete my project and make several new ones until the exe file returns.. and then it'll disappear again.

Here is an example of a working file, with the .exe still in it:
C:\Users\Admin\Documents\Visual Studio 2010\Projects\OneLastTry\Debug\OneLastTry.exe

And a file that WAS working but no longer has the .exe:
C:\Users\Admin\Documents\Visual Studio 2010\Projects\Lab2Prj\Debug

I can't see a difference in the three, short of the fact that only one has the executable that it should. I've double and triple-checked to be sure that files are being sent to the right place, but to no avail. Has anyone had this problem, or know how to fix it? I obviously don't know enough about the program to know what it's doing to my files. xD
 
Technology news on Phys.org
After creating the .exe file, try setting the attribute to read-only and perhaps system. Hopefully that will cause the system to prompt you when there's an attempt to delete the .exe.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
1K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
Replies
52
Views
5K
  • · Replies 10 ·
Replies
10
Views
6K