I posted this earlier and made the error of assumming this was still the forum specific to AutoHotkey, and I apologize for that.
I have a compiled AutoHotkey file that I need to update, and I unfortunatly lost the original .ahk file in a hard drive crash. I assume it is possible to un-compile it using the program, but do not know how, as this has not come up. Any help I can get will be most appreciated!
Open your autohotkey.exe file with an text editor. The code is in there.
Related
So I need to understand the contents of this picture.
I have searched through the other articles related to this on StackOverflow and I haven't found an answer or even another URL to a reference explaining this.
A little bit of context:
I am using UIPasteboard.general to copy some text and whenever I send the app to the background and enter any other application the former app crashes.
Now what's confusing is that I can still successfully paste what UIPasteboard has copied but still the app has crashed.
So I would like to troubleshoot but I do not have the slightest idea of where to begin looking at this.
So any insight anyone can give in this would be greatly appreciated!
I am facing the following issue and would really appreciate some help since I am a newcomer to windows systems:
I am writing a script which launches an executable at some point. This executable is likely to fail and I would like my batch file to stop running in this case. My researches led me to the following link: Does Windows batch support exception handling? (first answer).
The problem with this answer is that it seems (unless I am misled) to work only when the called target's source code is reachable. Anyway the solution seems really complicated for what I would like to do. Is there a more straightforward way to detect a failure (being able to capture the error message or to use the errorcode would be more than enough) ? You may have a look at the enclosed screenshot for a better understanding of the issue.
Thank you for your help, hope this will be useful to more than one,
regards
Appendix:
This first image shows the error message I would like to capture:
This one shows the part of the script where I call the executable:
On the second image, the findstr instruction is used to look for a particular sentence in a logs file, if the sentence is found then we can assume the execution has been successful, otherwise we cannot conclude. This is a rather perfunctory solution...
I am in a process of learning things in reverse order for fun, and I have decided to dissect Windows 10, bit-by-bit, and learn what makes a great OS function. And I also suppose that my question will be geared in other ways as well.
My question is, how do I look at something like Windows bootmgr source code properly? I have opened the file - which the file type is redundantly called "File" - and even though it is in Assembly language, it is completely impossible to read. My guess is that whoever wrote the File did something to encrypt the File so that it is unreadable, and thus unchangeable/unable to be edited.
Let me be perfectly clear: my purpose is not to change the bootmgr File to change windows, but rather to get a better understanding of how an OS works via reading, and also through trial and error.
Any help that anyone can give would be greatly appreciated. I love to learn about these things, and I just have been completely unable to find the answer I am looking for on any site thus far, including this one...IDK if I need to refine my searches or what.
Thank in advanced for your help. :)
Ps. I shall include a picture of what I am seeing in Notepad++ so you can get a better understanding of what I need here .
I think you may be confusing assembly language with machine code. Machine code is the language that your computer's processor understands. Assembly language is a series of symbols that are used to represent machine code. Compiled executables are stored in machine code.
That said, the standard way to view the machine code for a compiled binary is through the use of a program called a hex editor. A hex editor will display the binary code in a numerical format, rather than attempting to interpret the binary as text, like your editor is trying to do in the screenshot you supplied. Frhed is a popular hex editor, but there are many good ones to choose from.
Before I ask my question, I'd just like to state that I'm new to this site, and this is my first post, so don't beat me up too much! ;)
Okay, so my problem is this: I want to take an already made DOS executable and re-compile (is that a word?) it to run on modern Windows systems instead of giving me the "this app can't run on your PC" dialog.
Now, please do not say "just use DOSBox." There is a specific reason I want to do this the way I said it.
If you do know a way that this would be possible, then please notify me!
Thank you very much.
This question's context is the Windows operating system...XP on up to Win 7/8.
If you create a file on a drive and then create one or more hard links to that file, then if you delete the original file the file still resides on the disk since the hard links still refer to that file.
Is there some simple way (delete option?) to be able to remove the file and all of the hard links without having to search around for the hard links (not sure how you even find those from a simple windows user interface standpoint...I know you can do it with programming code, but I am looking for a user-level solution within the standard operating system user interface)?
Thanks!
EDIT:
I found this question/answer that discusses how to programmatically use c++ to find additional links to the file, but still searching for a standard windows UI or command line method. How to find all hard links to a file in Windows starting from XP in C++
Also found this link on superuser.com that doesn't give me much hope. Help!
https://superuser.com/questions/366739/how-can-i-find-hard-links-on-windows
There is a free utility called ln.exe that has a --list option that finds all of the hard links related to a given filename. Its download also comes with a batch file (DeleteAllHardlinks.bat) that will automatically delete all of the hard links to a given file name.
This pretty much addresses my need, so I will consider this a good answer.
Here is a link to the page for this utility. Hope someone else can benefit from this in the future!
http://schinagl.priv.at/nt/ln/ln.html