Help for this page
@echo off echo starting ... set A=B perl -e "$ENV{X}='Y'; system('cmd')" echo finished
c:\tmp>^C finished c:\>
c:\> ... c:\> c:\tmp>