Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
batch question
Bhargav Coca
How do I run a Windows batch ( batchfile.bat) from a Perl program? The batch program sets some system parameters (i.e.: %PATH%). I do not want to get any output returned to the Perl program - just want the batch file to run, set its system parameters and come back.
Thank you
Find more posts tagged with
Comments
JonathonG
system("cmd.exe /c
yourbatfile.bat
");
Jonathon
Interwoven Developer
Allstate, Inc.
jbonifaci
The same way you run any other system command. A few examples:
`C:/path/file.bat`;
qx(C:/path/file.bat);
system('C:/path/file.bat');
~Jeff
Bhargav Coca
Thank you, It works, but there is something more i need to do here. Thank you again