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
skweebl

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 Win7 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 Win7... Can anybody help?


My System SpecsSystem Spec
.

23 Sep 2010   #2
unifex

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
Bill2

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
strollin

W7 Ult desktop, W8.1 laptop, W7 Home netbook, W8.1 tablet, Win 10 TP VM
 
 

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
skweebl

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
Jar3d

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





Similar help and support threads
Thread Forum
Windows System Executable Give UAC Prompt Showing Unknown Publisher
I was just about to go to bed when I logged in via remote desktop to to my Media Center PC to schedule a show to record when the Windows update notification popped up. I have it set to install updates automatically on Sundays, but since no shows were scheduled to record for the rest of the night I...
General Discussion
Removing registered Acrobat 8.0 files using the command prompt.
The instructions are below. I get as far as the third line, which reads: Type cd "C:\Program Files\Common Files\Adobe\Acrobat\ActiveX" and press Enter. It responds, "path not found." I paste in this entire line, letter for letter. cd "C:\Program Files\Common Files\Adobe\Acrobat\ActiveX" Is...
Software
BSOD Error C0000135; No reboot after Command Prompt to get DMP files
Hi everyone, After closing our Asus laptop 2 nights ago (but not shutting it down), BSOD appeared with the following message: STOP: C0000135 The program cannot start because %hs is missing from your computer. Trying reinstalling the program. I've tried many different recovery/repair...
BSOD Help and Support
How do I command prompt style share my files with RDP?
Running Windows Hyper-V server I have Windows 7 I just want to run an application (an exe) on this server. How do I move it over? robocopy ????? c:/temp ?
Network & Sharing
User allowed to run executable as admin without prompt
I have a special case where a user needs to run an installed executable as an admin. This exe was written for XP and will only work properly when ran as admin. I do not want the user to have an admin account or the admin pass, but he needs to be able to start and stop this program at will. I have...
General Discussion
Command Line Prompt - How To Export List of Files to Text File
Hi guys, I have a folder with 995 files in it and I'd like to give someone a text file with a list of all these files in it. Is there a way that I can get the command line to send the names of these files to a text file? I tried navigating to the directory and using the DIR command and,...
General Discussion

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 03:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App