The old batch file worked on Python 2.5 but lead to the following error under Python 2.6: c:\Python26\python.exe: scapy is a package and cannot be directly executed New file should work under both versions.