Skip to content
Snippets Groups Projects
Commit ae05856b authored by Guillaume Valadon's avatar Guillaume Valadon Committed by GitHub
Browse files

Merge pull request #422 from p-l-/fix-win

Fix Windows bat files to work with spaces in paths (@gpotter2)
parents e1788840 5a7d25a8
No related branches found
No related tags found
No related merge requests found
@echo off
REM Use Python to run the UTscapy script from the current directory, passing all parameters
title UTscapy
python %~dp0\UTscapy %*
python "%~dp0\UTscapy %*"
@echo off
REM Use Python to run the Scapy script from the current directory, passing all parameters
title scapy
python %~dp0\scapy %*
python "%~dp0\scapy %*"
......@@ -3,7 +3,7 @@ set MYDIR=%cd%\..
set PYTHONPATH=%MYDIR%
if [%1]==[] (
SET date=%DATE%
python %MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%date:~6,4%_%date:~3,2%_%date:~0,2%.html
python "%MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%date:~6,4%_%date:~3,2%_%date:~0,2%.html"
) else (
python %MYDIR%\scapy\tools\UTscapy.py %1 %2 %3 %4 %5 %6 %7 %8 %9
python "%MYDIR%\scapy\tools\UTscapy.py %@"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment