Results 1 to 4 of 4

Thread: Calling WinRAR from MATLAB

  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Calling WinRAR from MATLAB

    Hi,

    I have a little problem calling WinRAR from Matlab. I use the following command:

    cd(folder) % where folder is the location where the file I need to uncompress is stored

    ! start WinRaR e *.Z

    .....

    the problem is that it uncompresses the file only at the end of the execution of the MATLAB function (even if this command line is not at the end of it), but i need to use the uncompressed file during the function.

    Can you help me?

    Thanks you all for your eventual answers

    Mat

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Calling WinRAR from MATLAB

    You can use the DOS command. It may be able to return you some values, it shoould be able to run inside your function. Also, check out suggestions given in similar kind of thread here - Calling winrar from matlab

  3. #3
    Join Date
    Apr 2012
    Posts
    2

    Re: Calling WinRAR from MATLAB

    Thanks for your answer but it didn't solve my problem. I had used the comands "dos" and "system", but the problem is always the same. It seems it does not depend on the type of command because i tried to call from MATLAB another program (different from WinRAR) and it works (using both "dos" or "!"). I guess it depends on the compatibility between MATLAB and WINRAR. Maybe the command i use:

    start WinRaR e *.Z

    is not the right one; but i have checked, on winrar help and through different forum, that it should be good.

    Can you help me?

    Thanks in advance

  4. #4
    Join Date
    Nov 2011
    Posts
    659

    Re: Calling WinRAR from MATLAB

    Thanks for your answer but it didn't solve my problem. I had used the comands "dos" and "system", but the problem is always the same. It seems it does not depend on the type of command because i tried to call from MATLAB another program (different from WinRAR) and it works (using both "dos" or "!"). I guess it depends on the compatibility between MATLAB and WINRAR. Maybe the command i use:

    start WinRaR e *.Z

    is not the right one; but i have checked, on winrar help and through different forum, that it should be good.

    Can you help me?

    Thanks in advance
    I have found one mentioning that he was able to solve it out using-
    start /WAIT WinRaR e *.Z
    so if you want then you can give it a try and check out if it is helping out you as well or not.

Similar Threads

  1. How to begin with MATLAB?
    By Jacques25 in forum Software Development
    Replies: 3
    Last Post: 18-01-2011, 07:57 AM
  2. How to convert MATLAB to C?
    By The Recruiter in forum Software Development
    Replies: 6
    Last Post: 17-04-2010, 06:15 AM
  3. Matlab 7.9 crashes under Windows 7
    By Chandranath in forum Windows Software
    Replies: 5
    Last Post: 13-01-2010, 03:58 AM
  4. Probabilities in matlab
    By Brunoz in forum Software Development
    Replies: 5
    Last Post: 05-01-2010, 11:03 AM
  5. Calling winrar from matlab
    By go raiden in forum Software Development
    Replies: 5
    Last Post: 02-09-2008, 08:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,988,274.04619 seconds with 16 queries