Expand 209 513 im going to change in to my users home

Info icon This preview shows pages 14–16. Sign up to view the full content.

View Full Document Right Arrow Icon
Expand 2:09-5:13 I'm going to change in to my users home directory if I do a dir command here notice that there is a cab file right here, it's got kind of a long file name. Well that cab file is absolutely full of other files, if for some reason I'm troubleshooting a problem and say I find a system file that has been corruptedand I want to get a fresh copy of that system file from the original cab file over here, I can do that using the expand command. We type expand and let's view the help for this command. The first option I want to show you is thisone right here, -d, -d simply displays all of the files in the compressed file. It doesn't actually extract anything, so you can use it to find a particular file that you're looking for to make sure it's actually in the cab file. So let's go ahead and try that with this cab file right here as we type expand -d then we type the name of the cab file which is really long. So I'm going to type the first few characters of the cab file now and then I'm going to press the tab key to use tab complete to finish typing it for me because I'm kind of lazy. Press Enter and we see a listing of all the files in that cab file.
Image of page 14

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Alright, so there are a lot of files in that cab file and let's just suppose that we need this file right here just to make things easy. The name of the file we need to extract from the cab file is system.workflow.runtime.dll so to do this we type expand and we have to specify the name of the cab file that we want to extract the file from. I'll use tab complete once again and then we use the -f option and a colon followed by the name of the file that we want to extract from the cab file. Now if I leave this option out, the -f option then it will simply extract all the files from the cab file and I don't want to fill up my directory here with all that junk so I'm just going to specifysystem.workflow.runtime.dll and then we have to specify where we want those files to be extracted to after they're pulled out of the cab file. Let's enter C:\Users\rtracy\Documents and press Enter and the files were extracted. If we do a dir command you'll see that there were actually a couple of directories created. This one right here, this one right here and this one right here. The reason that happened is because there were actually three different versions of that file in the cab file and we didn't specify exactly which one so the expand said, well I'll just grab all of them and I'll put each one in a different sub directory.Mirroring the directory structure they were in within the cab file itself. You can one version is for AMD-64 processors one is for 32-bit x86 processors and so on. So that's how you use the expand command. Let's go ahead and clear the screen, cls.
Image of page 15
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern