What Is an Object File?
A file is a collection of related elements with a file name, as defined by the creator. The source file generally refers to the result of saving the code written in assembly language or high-level language as a file. The source file is relative to the target file and the executable file.
- In the file system, files are divided into several types in order to facilitate the management and control of the files. Because different systems manage files differently, their classification methods for files are also very different. In order to make it easier for the system and the user to understand the file type, in many operating systems, the file type is suffixed with the file name as the extension, followed by a "." Files can be divided into three categories based on the form of data in the files:
- Source File. This is a file made up of source programs and data. Files that are usually formed by source programs and data entered by a terminal or input device are source files. It is usually composed of ASCII or Chinese characters.
- Target file. This refers to a file made up of object code that has been compiled by a source language compiler but not yet linked by a linker. It belongs to binary files. Usually, the suffix used by the object file is ".obj".
- executable file. This refers to the file formed by compiling the object code generated after linking through the linker [1]
- Source code (also known as source program)
General solution for source files
- 1. Log off or restart your computer and try deleting again.
- 2. Enter "safe mode removal".
- 3 Delete it using the DEL, DELTREE, and RD commands from the pure DOS command line.
- 4 If there are too many subdirectories or files in the folder and you cannot delete them, you can delete the subdirectories and files in the folder first, and then delete the folder.
- 5. End the Explorer.exe process in Task Manager and delete the file in the command prompt window.
- 6. If you have ACDSee, FlashFXP, Nero, Total software installed, you can try to delete folders in these software.
Advanced Source File Solutions
- 1. Disk error
- Run a disk scan and scan the partitions where the files are located. Before scanning, make sure that the repair file and bad sectors are selected. Full scan all options, and then delete the files after scanning.
- 2. Read-ahead mechanism
- Some media playback may be interrupted or previewing will prevent deletion. Enter: REGSVR32 / U SHMEDIA.DLL in the "Run" box to unregister the read-ahead function. Or delete the following key in the registry: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ CLSID \ {87D62D94-71B3-4b9a-9489-5FE6850DC73E} \ InProcServer32].
- 3 Firewall
- Because the anti-virus software will occupy the file being checked during virus detection, which will cause the file to be used during deletion, you can try to temporarily close its real-time monitoring program, which may be resolved.
- 4 OFFice, WPS series software
- The illegal close of OFFice will also make it impossible to delete or rename files. Re-run the program, then close normally, then delete the file.
- 5. With WinRAR
- Right-click the folder you want to delete and select "Add to Compressed File". In the pop-up dialog box, select "Delete source files after compression," just write a name for the compressed package and click OK.
- 6. Permissions issue
- If it is 2000, xp, win7 and win8 system, please first determine if you have permission to delete this file or folder.
- 7. Deletion of executables
- If the image of the executable file or the DLL dynamic link library file called by the program is not released in memory, it will be prompted when the file is being deleted. The solution is to delete the system page file. Win98 is Win386.SWP, Win2000 / XP is pagefile.sys. Be careful to delete under DOS.
- 8. File shredding
- File shredding is the complete deletion of files on your computer without leaving any traces [2] . Using a file shredder, such as File Pulverizer, can completely remove some stubbornness.