Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: System path

by welle (Beadle)
on Apr 30, 2011 at 13:10 UTC ( #902185=note: print w/ replies, xml ) Need Help??


in reply to Re^3: System path
in thread System path

"files" is just the directory containing the .exe file. Just to give you an idea. The following works fine

sub convert{ system ("files/pdftotext.exe -nopgbrk - q example.pdf" ); }

It converts example.pdf in example.txt. Crazy enough I am loosing so much time for this stupid thing...


Comment on Re^4: System path
Download Code
Re^5: System path
by Eliya (Vicar) on Apr 30, 2011 at 13:19 UTC

    I'm no Windows person, but I know that Perl's internal processing of system arguments is rather complex... so maybe the difference of this example here (which works) to the other case with the quoted argument has the effect that the latter is executed via cmd.exe, while the former executes files/pdftotext.exe directly (in which case the forward slash wouldn't be a problem).  Just a guess, though, as at the moment I don't have a Windows to try.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-11-21 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (114 votes), past polls