Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^7: help with unraring

by nikosv (Hermit)
on Apr 25, 2012 at 09:20 UTC ( #967026=note: print w/ replies, xml ) Need Help??


in reply to Re^6: help with unraring
in thread help with unraring

paths in windows uses backlashes

file=>"C:\\perl2exe\\For perl 5.10.1\\test.rar",
output_dir_path=>"C:\\extract"

($result,$directory) = process_file( file=>"C:\\perl2exe\\For perl 5.10.1\\test.rar", password=>undef, output_dir_path=>"C:\\extract" );
try and tell me


Comment on Re^7: help with unraring
Download Code
Re^8: help with unraring
by afoken (Parson) on Apr 25, 2012 at 10:14 UTC
    paths in windows uses backlashes

    Only some tools (including cmd.exe and command.com) are restricted to backslashes, the API functions accept both forward slashes and backslashes in all versions of DOS and Windows. So, using forward slashes is perfectly ok.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      not in this case.use the aforementioned code, change the slashes,and see what happens

        Changed the slashes still it gives me the same error..

Re^8: help with unraring
by gautamparimoo (Beadle) on Apr 25, 2012 at 10:20 UTC

    I changed backslashes but still gives me chain error. Another thing i noticed is that if i comment out list_archives_in_file method , it extracts to the location but if i list_archive first and then process_file it gives the chain error.

      does it extract the files? if yes,forget about the "error" as I have already explained

        Thanks for the help. Tell me one thing is it neccesary for the unrar.dll file to be in system32 folder? As I am making an exe I wanted to know If could just bundle the dll file with script file and make the exe. Is this possible?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967026]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-25 03:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls