Posts from Programming
Unless it's these points:
After that, it was opened in a text editor, and a 32-character text string was added to the beginning (including the newline character before the exe file content, making it 33 characters).
But I don't believe that after all the operations, you got exactly the same test.exe that you had before. No way.
I don't believe it. Let me compare them myself ;)
I wouldn't have believed it before either :D
http://www.hermit.besaba.com/forment.zip
Added 19 minutes later
Also, try opening any .exe file, even my test.exe from Folder1 (it's small), in Notepad and then saving it to another directory from Notepad with the exact same name and extension. You'll see that it won't run afterwards, even though the size, content, attributes, and even the names of both files will be absolutely identical.
Aren't the different test.exe files in the Folder1 and Folder2 folders different?
Added 2 hours 30 minutes ago
Yes, test.com works correctly, but Notepad @ replaced 00h with 20h!!! and the incorrect content of the exe file was already being sent to test.com!
A .bat file is launched, and its output is redirected to a text file. For example, task.bat > result.txt. This file uses the start command to launch a program. I even tried redirecting all its output streams to nowhere: 1>nul 2>nul. The .bat file finishes, but the program continues to run. And until it's closed, it's impossible to delete the result.txt file, which is very necessary. What could be the problem?
Why can't I close the file in the program?