To restore (unzip) MYFILE.TXT to a different directory (YOURDIR), you could use the following command format: PKUNZIP A:\ANYNAME.ZIP MYFILE.TXT C:\MYDIR To restore (unzip) MYFILE.TXT to its original directory, you could use the following command format: The compressed filename will be ANYNAME.ZIP. The file to be compressed is MYFILE.TXT and is in a directory called MYDIR. In the first example, we will compress a single file on your hard drive to a diskette. NOTE: PKZIP/PKUNZIP help screens can be accessed by typing 'PKZIP/?' or 'PKUNZIP/?' at the command prompt. The PKZIP/PKUNZIP examples that follow present a few of the common ways to use these programs. You can use the Recovery files to either restore all of your original software or to restore individual directories and files. These machines include a Recovery directory that contains a compressed image of the software pre-loaded onto the PS/1 and Aptiva personal computers. Another example of how zipped files are used can be found in the IBM PS/1 and early Aptiva models. Most files available for download from bulletin boards and other online services are zipped (compressed) to save space and to reduce download time. Restore pre-loaded, original PS/1 - Aptiva software. Transport data from one machine to another.ĥ. Copy files that are larger than a single diskette (spans multiple diskettes).ģ. Archive data not required to be online.Ģ. Several examples of how you can use zipped files include:ġ. Zipped files typically have a file extension of. The PKUNZIP program will unzip files compressed by PKZIP. "Unzipping" a file refers to uncompressing a zipped file. Zipping a file refers to a specific method/program used to compress a file. Other programs compress your directories and files by using the command line interface in DOS to "zip" the data to your hard drive or diskette. Operating system data compression programs like IBM PC DOS 7's Stacker 4.0 and MS-DOS 6.22's DriveSpace store data in a compressed format on your hard drive or a diskette and then uncompress the data as it is read into memory. Data compression is a method used to increase your disk storage capacity. The PKZIP/PKUNZIP programs compress and uncompress your program and data files. This loop keeps on running until all the files whose names are stored in the `folder’ local are unzipped.This article discusses how to use the PKZIP and PKUNZIP shareware programs by PKWARE, Inc. Now we just need to use a foreach loop to unzip each of the files in turn. zip extensions ( files “*.zip*”) in the directory stored in `sourcedir’ ( dir “`sourcedir’”). This creates a local variable called ‘folder’ ( local folder) that has the names of all files with the. The syntax for that is as follows: local folder : dir “`sourcedir’” files “*.zip*” zip files in the source directory in a local called ‘folder’. Our next step is to ask Stata to store the names of all the. Because sourcedirrefers to a local variable, we must enclose it in left and right single quotes. This is then followed by using the cdcommand as before but we just type sourcedir – the local storing the directory path – in the inverted commas. local sourcedir “C:\Users\Desktop\Stata\zipfiles\multiplefiles” We store the working directory in a local variable named ‘sourcedir’. Loops are particularly helpful when you have a large number of files to unzip and typing a separate command for each one of them is cumbersome. To extract multiple zipped files (named ‘file4’ and ‘file5’), we make use of locals and loops. zip files, we must specify the extension if any other format is being unzipped. cd “C:\Users\Desktop\Stata\zipfiles\others” unzipfile “file2.z”īecause Stata’s default setting for this command is to extract. z extension by once again resetting the working directory to the relevant folder. Other file formats can be extracted using the aforementioned unzipfilecommand. shell set path=”C:\Program Files\WinRAR” %path%
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |