Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: unrar - unzipfile


From   Pablo Bonilla <pablo.bonilla1234@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: unrar - unzipfile
Date   Wed, 10 Oct 2012 18:37:29 -0400

Great !

thank you Nick. I really appreciate your solutions.

best,


On Wed, Oct 10, 2012 at 4:38 PM, Nick Cox <njcoxstata@gmail.com> wrote:
> -unrar- is not, to my understanding, a DOS command strict sense, or
> whatever Microsoft wants to call them these days.
>
> It is a call to a program you may or may not have installed. So, that
> kind of use depends on what extras you have.
>
> Also, the usefulness of that kind of call depends on setting the path.
>
> On the rest, a Google turns up various places including
>
> http://en.wikipedia.org/wiki/List_of_MS-DOS_commands
>
> Looking at that kind of list, I see many I used to know and use, and
> many I probably never knew about. I still occasionally go the Command
> Prompt and issue -dir- -find- or -xcopy-.
>
> Nick
>
> On Wed, Oct 10, 2012 at 8:32 PM, Pablo Bonilla
> <pablo.bonilla1234@gmail.com> wrote:
>> Thank you both for your answers.
>>
>> I found that I have to run both DOS commands in the same line within
>> the Stata or the do-file editor.
>>
>> shell set path="C:\Program Files\WinRAR";%path% & unrar  e "filename.rar"
>>
>> Otherwise it does not  work because each time the shell opens the DOS
>> the "set path" command does not remain.
>>
>> Thank you both. This is super useful.
>>
>> PS: do you know where can I learn more about DOS or executing useful
>> DOS commands from Stata ???
>>
>>
>>
>> On Wed, Oct 10, 2012 at 1:32 PM, Nick Cox <njcoxstata@gmail.com> wrote:
>>> Aaron's giving good answers but I am not clear why the question
>>> emphasises doing this while -shell-ing out. I've had good results
>>> under Windows with PeaZip
>>>
>>> http://peazip.sourceforge.net/index.html
>>>
>>> and I typically enter PeaZip as a separate application. Then it's
>>> usually easy to see what's what. That is  especially helpful if the
>>> compressed file is not quite as you expect, or contains several files,
>>> which are not equally interesting or useful.
>>>
>>> I note that as a generality the answers to such questions depend on
>>> operating system; it's only an incidental mention of "win" as a prefix
>>> that lets us guess that Pablo is using Windows. The FAQ encourages you
>>> to specify operating system if it could possibly be pertinent.
>>>
>>> Nick
>>>
>>> On Wed, Oct 10, 2012 at 5:32 PM, Aaron Kirkman <ak1795mailserv@gmail.com> wrote:
>>>> I misspoke. Once you've set the path from the Windows command line
>>>> (which can be invoked by running --shell-- from within Stata), this
>>>> command:
>>>>
>>>> !unrar e filename.rar
>>>>
>>>> should work from within Stata or a do file. It's a shell command, but
>>>> the exclamation point will break the command if it's run from the
>>>> Windows command line instead of Stata.
>>>
>>>  On Wed, Oct 10, 2012 at 11:00 AM, Pablo Bonilla
>>> <pablo.bonilla1234@gmail.com> wrote:
>>>
>>>>> I would like to know if there is a command that “unrar” my rar files.
>>>>> The -unzipfile- command does not work with .rar files. If that command
>>>>> does not exist, do any of you know how to use the -shell- command in
>>>>> order to use “winRAR” with the purpose of unrar my files?
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/



-- 
----

Pablo Bonilla

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index