exe to batch
Moderator: DosItHelp
exe to batch
Hi I converted a batch file I coded to an exe but I need to edit it and I acidently deleted the file and yes I checked the recycling bin and used a data recovy program but I couldn't restore the file thanks.
Re: exe to batch
Batch to EXE converters really are not true executables. They are more of self extracting executable zip files.
When the batch file executes it will normally extract itself to the current directory or temp folder within the users profile.
When the batch file executes it will normally extract itself to the current directory or temp folder within the users profile.
Re: exe to batch
I can't find either is there a third party software that can do this?
Re: exe to batch
If you have access to this "converter" you could try to echo the location where the batch is extracted temporarily.
Just "compile" a batch like this and run the resulting executable:
This doesn't work with all batch 2 exe converters, so it may fail - but i guess it is worth a try.
The location is displayed in the first line.
Just execute and pause your executable, and search the directory for batch files.
If your batch doesn't pause on its own, you could force the program to pause by marking some text (or empty region) in the command shell.
penpen
Just "compile" a batch like this and run the resulting executable:
Code: Select all
@echo off
cls
call :viewSource
goto :eof
:viewSource
echo ["%~dpfn0"]
type "%~dpfn0"
echo [eof]
pause
goto :eof
The location is displayed in the first line.
Just execute and pause your executable, and search the directory for batch files.
If your batch doesn't pause on its own, you could force the program to pause by marking some text (or empty region) in the command shell.
penpen
Re: exe to batch
That won't work I used an online converter.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: exe to batch
Which one?
Re: exe to batch
Does your batch file have a stop point in it?
Re: exe to batch
Going to assume this one.
http://www.f2ko.de/en/ob2e.php
But all of the advice still holds true. Compile another batch file and echo out the batch files current path. Put a pause in the new batch file as well. You could then do a search for the bat file while the batch file is paused.
But if the batch file you are trying to recover is running and exiting before you can copy it I am not sure what we could do.
http://www.f2ko.de/en/ob2e.php
But all of the advice still holds true. Compile another batch file and echo out the batch files current path. Put a pause in the new batch file as well. You could then do a search for the bat file while the batch file is paused.
But if the batch file you are trying to recover is running and exiting before you can copy it I am not sure what we could do.
Re: exe to batch
Than you I realized that it was stored in a sub folder in %temp%
Re: exe to batch
batchcc wrote:Than you I realized that it was stored in a sub folder in %temp%
Winner!