[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: unrar - unzipfile
Pablo Bonilla <email@example.com>
Re: st: unrar - unzipfile
Wed, 10 Oct 2012 18:37:29 -0400
thank you Nick. I really appreciate your solutions.
On Wed, Oct 10, 2012 at 4:38 PM, Nick Cox <firstname.lastname@example.org> 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
> 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-.
> On Wed, Oct 10, 2012 at 8:32 PM, Pablo Bonilla
> <email@example.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 <firstname.lastname@example.org> 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
>>> 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.
>>> On Wed, Oct 10, 2012 at 5:32 PM, Aaron Kirkman <email@example.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
>>>> !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
>>> <firstname.lastname@example.org> 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/
* For searches and help try: