How to return an .exe turing file into a .t file
Author |
Message |
efan41
|
Posted: Wed Oct 28, 2009 1:45 pm Post subject: How to return an .exe turing file into a .t file |
|
|
What is it you are trying to achieve?
Taking an .exe file and turning it into .t to see the codes for that program.
What is the problem you are having?
Stupid me, I created the .exe file for my program, but accidentaly saved over .t file for that program. So now, I can't modify the program, unless I can find a way to take the .exe file and bring it back to .t
Describe what you have tried to solve this problem
I'm stumped
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
N\A
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Wed Oct 28, 2009 1:54 pm Post subject: Re: How to return an .exe turing file into a .t file |
|
|
efan41 @ Wed Oct 28, 2009 1:45 pm wrote:
Please specify what version of Turing you are using
4.1.1
I call bullshit, because 4.1.1 doesn't even generate executables. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
apomb
![](http://compsci.ca/v3/uploads/user_avatars/6489609347028a0f2422f.png)
|
Posted: Wed Oct 28, 2009 2:17 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
sounds like someone wants to steal code, doesnt it Tony?
and even if someone wants to decompile a turing executable, it would not produce a nice formatted .t file but some very ugly C++ im assuming. |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Wed Oct 28, 2009 2:20 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
Short version: You can't
Long version: You can but it would be faster and easier to rewrite your program. It would require a frailly good understanding of assembly language and C++ and you would prity much have to do the conversion by hand or be the first person to make a Turing decomplier. Even then you would end up with some very ugly code that would not be readable.
In any case as tony has pointer out, last time we hured compling was broken in Turing 4.1.1 so you either have the wrong version or you are trying to decomplie some one elses program. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
efan41
|
Posted: Thu Oct 29, 2009 1:01 pm Post subject: Re: How to return an .exe turing file into a .t file |
|
|
My bad. At home I have 4.1.1, but here at school it's 4.0.5. Not trying to steal codes, just don't want to have to re-write my 1000 line project.. ![Sad Sad](images/smiles/icon_sad.gif) |
|
|
|
|
![](images/spacer.gif) |
apomb
![](http://compsci.ca/v3/uploads/user_avatars/6489609347028a0f2422f.png)
|
Posted: Thu Oct 29, 2009 1:15 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
how do you save over a file with a completely different extension anyway? |
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Thu Oct 29, 2009 2:56 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
I'd look into file recovery, not EXE to code. |
|
|
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Thu Oct 29, 2009 3:09 pm Post subject: Re: RE:How to return an .exe turing file into a .t file |
|
|
apomb @ Thu Oct 29, 2009 1:15 pm wrote: how do you save over a file with a completely different extension anyway? That's what I was thinking.
Anyways, if you're looking to decompile a Turing generated EXE, the simple answer is that you can't do it. But like Dan said, if you were really inclined, you could write a decompiler, but I doubt that will happen since you're using Turing and you're probably nowhere near C++ and Assembly level (no offense or anything). If you actually did overwrite it (how you can overwrite a .t file with .exe is beyond me) then try Recuva to recover your file. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Thu Oct 29, 2009 4:37 pm Post subject: Re: RE:How to return an .exe turing file into a .t file |
|
|
andrew. @ 2009-10-29, 3:09 pm wrote: If you actually did overwrite it (how you can overwrite a .t file with .exe is beyond me) then try Recuva to recover your file.
Hmm, does Recuva detect overwritten files? I thought most file recovery software was only for "recycle bin" type deletions. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Thu Oct 29, 2009 6:01 pm Post subject: Re: RE:How to return an .exe turing file into a .t file |
|
|
apomb @ Thu Oct 29, 2009 1:15 pm wrote: how do you save over a file with a completely different extension anyway?
Actually, I've done that recently
Quote: The compiled version of my #cs246 assignment managed to delete its own source code. The assignment is now in a local Git repo. #uw
That involved some faulty code, and a dumb idea of using the source file as a sample input file (which ended up being pointed at as the output file, and overwritten).
Shit happens. It's faster to write things the second time around. Version control is a necessity of writing software of any magnitude. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Thu Oct 29, 2009 6:01 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
I'm pretty sure it will recover any deleted file. I restored 95% of pictures deleted by a digital camera and that doesn't have a trash bin. Isn't overwritten files the same as deleting the old and creating a new one? |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Thu Oct 29, 2009 6:36 pm Post subject: RE:How to return an .exe turing file into a .t file |
|
|
When a file is deleted, it's index is just drop from the file systems table of files. The data is not noramly overwriten right away.
This is also noramly true when you are "overwriting" a file (copying a file over another). Well it looks this way in the OS realy the index is just droped and the new file is put in the next open spot.
So the file could still be there, however each new file or edited file could write over that lost file as the file system sees it as unused space. The best chances for recovery is to remove the drive from the computer ASAP and only access it in a read only fahson form another computer running the recovery software (or the same computer if you have a second drive you can boot from).
Note: The above is a rather simplstic explnation of how things work, it largely depends on the file system and hardware. But the point is stop using the hard drive as soon as you know you lost the file. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: Fri Oct 30, 2009 4:35 pm Post subject: Re: RE:How to return an .exe turing file into a .t file |
|
|
Dan @ Thu Oct 29, 2009 6:36 pm wrote:
Note: The above is a rather simplstic explnation of how things work, it largely depends on the file system and hardware. But the point is stop using the hard drive as soon as you know you lost the file.
SO true, to stop using the hard drive once you lost something...I recently deleted a folder (ooh shock lol) containing a 6 page essay (was unaware it was in there). ran a recovery tool i have, and bam it came back. When i have tried to recover files that i deleted the prior day...no dice. |
|
|
|
|
![](images/spacer.gif) |
efan41
|
Posted: Mon Nov 02, 2009 1:39 pm Post subject: Re: How to return an .exe turing file into a .t file |
|
|
For all of you wondering how I managed to overwrite a .t file with an .exe file, well I didn't.
Right now I am making a microsoft word rip off if you will for a class project. It has to have similar fuctions such as copy, paste, inserting pictures, opening and saving files ect...
Being stuck on whatever it is that I was, I had read a post in the turing help section of this forum of how to turn your .t files into .exe. So I followed the instructions and I got myself a .exe of my project.
Afterwards, I was trying to find a more efficient way of opening files, seeing as GUI.CreateTextBoxFull dosen't allow you to modify what appears on your screen. I then discovered something to this effect (open : a, b, get), although I'm not sure how to call those, I'm in a french school so our teacher tries really hard to keep things in french.
Anyways, I tried to open my microsoft rip off codes with the more efficient method, but what I had done by mistake is that instead of using get, I had used a put, so whatever was in the rip off was overwiritten by whatever was typed onto my screen. So that's why I wanted to know if you could turn an .exe back into a .t, because I have the .exe, but not the codes for it anymore...
So yeah, like I posted before, I wasn't trying to steal codes, just trying to salvage what I could, and apparently there is nothing to be saved, so... And yeah this was also to explain that I didn't overwrite a .t file with an .exe. |
|
|
|
|
![](images/spacer.gif) |
|
|