For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > October 2005 > Call a .bat from a PERL script









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Call a .bat from a PERL script
ashler

2005-10-22, 2:11 pm

I want to call a .bat file [c:\clients\setenvironment.bat] from a .pl file/script. This .bat sets a bunch of path environmental variables; set DC_Home = C:\app\bin

....

My .pl says system("C:/clients/setenvironment.bat")

It appears to run... it shows all the proper lines on the screen.. but if you then echo out one of the variables you simply get the variable's name... It does not actually SET the path etc.

Any ideas?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com