Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, 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
Pablo Bonilla <email@example.com>
Re: st: unrar - unzipfile
Wed, 10 Oct 2012 15:32:43 -0400
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: