in reply to Re: Automating cmd prompt command execution
in thread Automating cmd prompt command execution

thanks a lot for the help. What I meant was, the kindletool.exe tool will be kept in a particular path. Ex : C:\Users\user\Desktop\Convert. So this code which is given, will run from bin folder of perl. I want to run it on the above mentioned path.

  • Comment on Re^2: Automating cmd prompt command execution

Replies are listed 'Best First'.
Re^3: Automating cmd prompt command execution
by Anonymous Monk on Sep 08, 2015 at 10:20 UTC

    Ignore my reply !! I figured it out...i was bit confused :) now its clear..one more help, when the code is done running, I should get a message saying " Do u want to continue? Press Y to run the program again or press N to exit"

      Use print to show the message, use readline to get the answer. Wrap the whole program body in a loop to repeat it:
      my $run = 'y'; while ($run =~ /^y/i) { ... print 'Do u want to continue? '; $run = readline; }
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ