Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Extracting files from an executable with the command prompt

23 Sep 2010   #1

windows 7 ultimate
 
 
Extracting files from an executable with the command prompt

Hello everybody. I have what I thought should be a relatively straightforward question: What do I type in the command prompt in Windows 7 to extract all the files from inside an .exe? I remember doing it once a long while back, but I forgot how and Google is being especially unhelpful.

One result instructed me to navigate to the file's location and type:

filename.exe /A /P C:\destinationfolder

but that didn't work. I assumed it was for an older Windows version. Google got its hit from a comment saying it didn't work on Windows 7... Can anybody help?

My System SpecsSystem Spec
.

23 Sep 2010   #2

Windows 7 Ultimate (x64)
 
 

Most archive-related programs (i.e. 7zip, WinRAR, etc.) have a command-line capability. You can also use unzip.exe.

There is also the Microsoft self-extractor, see this page for description.
My System SpecsSystem Spec
23 Sep 2010   #3

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

The usual way I do it is to use winrar or 7z (or whatever decompression utility you have installed). E.g. when I right click on an .exe I may get the option to extract files to... with winrar. But that doesnt work all the time. In that case try using Universal Extractor.
My System SpecsSystem Spec
.


23 Sep 2010   #4

Win 7 Ultimate (64-bit), Win 8 (64-bit)
 
 

First of all, not all .exes have files that can be extracted. Only those .exes that are SEAs (self-extracting archives) have files to be extracted.

If you want to extract ALL of the files from an SEA the simplest method would be to simply execute the .exe which will do it's thing and extract all of the files within. If you wanted to extract only certain files from the SEA then I could see using some of the 3rd party apps previously suggested.

What happens when you simply try to run the .exe? It's possible that the SEA was created for an OS like Win95 or DOS and the embedded version of archiver won't run from within Win 7.

Are you sure the file you are trying to extract is an SEA?
My System SpecsSystem Spec
23 Sep 2010   #5

windows 7 ultimate
 
 

Wow, thanks for all the responses guys. Strollin, it was a video driver .exe. There was no .zip version of the file available (at least, I didn't see one, even though there normally is), and I couldn't install it with a .exe version because my laptop is a Dell, and it only accepts Dell drivers despite those being much older than the Intel ones. They must be installed manually.

Anyway, WinRar was able to do it. I could have sworn there was a way to do it via the command prompt, though. Thank you for your help everyone :]
My System SpecsSystem Spec
19 Feb 2014   #6

Windows 7 64 & 32bit + Windows 8.1 64bit
 
 
RE: Extracting files from an executable with the command prompt

Old thread but wasn't answered....

Quote   Quote: Originally Posted by skweebl View Post
I could have sworn there was a way to do it via the command prompt, though. Thank you for your help everyone :]
you are correct there is a way to do it via command line.
Found it here you go:

Ensure proper permissions are in place on the destination directory...
Script:
C:\executible_To_Extract.exe -nos_o"C:\destination_Directory" -nos_ne 
What I''ve used to extract adobe reader exe's for msi deployment. Hope it comes in handy to others out there.
My System SpecsSystem Spec
Reply

 Extracting files from an executable with the command prompt





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:54 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33