How To Run A Batch File From A Perl Script

IT Support Forum Forums Windows Windows Server 2012 Applications How To Run A Batch File From A Perl Script

Tagged: ,

Viewing 0 reply threads
  • Author
    Posts
    • #1622
      Webmaster
      Keymaster

      Want to run a batch file from a perl script? Here’s how to run a batch file from a perl script:

      system("start C:\\Temp\\BatchFile.bat");   # Run the batch file
      sleep 15;  # Wait 15 seconds while the batch file runs before continuing
      

Viewing 0 reply threads
  • You must be logged in to reply to this topic.