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

  • Thread starter Thread starter Mholnic-
  • Start date Start date
  • Tags Tags
    files Visual
Click For Summary
SUMMARY

Visual Studio 2010 Ultimate is experiencing an issue where compiled .exe files are disappearing from the \Debug\ folder after debugging. Users report that the executable files are present initially but vanish after running the program, leading to errors stating that the system cannot find the specified file. A suggested workaround includes setting the .exe file attributes to read-only or system to prevent deletion. This problem has been persistent for users since the installation of Visual Studio 2010.

PREREQUISITES
  • Familiarity with Visual Studio 2010 Ultimate
  • Understanding of project file structures in C#
  • Basic knowledge of file attributes in Windows
  • Experience with debugging processes in Visual Studio
NEXT STEPS
  • Investigate Visual Studio 2010 project settings related to output paths
  • Learn how to set file attributes in Windows using command line
  • Explore Visual Studio debugging options and configurations
  • Research common issues with Visual Studio 2010 and potential patches or updates
USEFUL FOR

This discussion is beneficial for programming students, developers using Visual Studio 2010, and anyone troubleshooting executable file issues in their projects.

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.
 

Similar threads

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