Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndiff.bat (v7.94) fails on Windows with error: "\Nmap\ndiff.py" kann syntaktisch an dieser Stelle nicht verarbeitet werden. #2733

Open
MartinRoDEsoft opened this issue Oct 31, 2023 · 1 comment · May be fixed by #2865

Comments

@MartinRoDEsoft
Copy link

Describe the current behavior

  • Install nmap with ndiff v7.94 on Windows 10 using the installer (in my case Window 10 German)
  • Open cmd.
  • Execute "C:\Program Files (x86)\Nmap\ndiff.bat" FILE1 FILE2
  • Batch file fails with error: "\Nmap\ndiff.py" kann syntaktisch an dieser Stelle nicht verarbeitet werden.

Expected behavior

  • ndiff should start and find the diefferences between FILE1 and FILE2.
@MartinRoDEsoft
Copy link
Author

MartinRoDEsoft commented Oct 31, 2023

Maybe the issue arises because of the space characters in the installation folder.
As a workaround (or final solution?), I modified ndiff.bat, Line 15:

  • Old: echo Cannot run %PROG%
  • New: echo Cannot run "%PROG%"

This works for me.

By the way, it seems installing Python is a prerequisite for running ndiff. This is not clearly stated in the documentation.

@GMZwinge GMZwinge linked a pull request Jun 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant