if($^O=~m/Win32/) { $winnt = `echo %SystemRoot%` ; chomp($winnt); } system ("$winnt\\system32\\cmd.exe","/c [ABSOLUTE_PATH_TO_BAT_CMD_OR_SOME_EXE]");