in reply to why isn't bat file getting called?

Backslash has a special meaning in quoted strings. Use forward slash instead, or escape the special meaning of backslashes by applying backslashes.
system("c:/myfolder/my.bat"); system("c:\\myfolder\\my.bat");

Replies are listed 'Best First'.
Re^2: why isn't bat file getting called?
by TourneyOfPerl (Initiate) on May 02, 2012 at 19:02 UTC

    Oh, thanks. That was it!