All of the comments guided me to the right way to do it.
I used this great working code:
:: Check for Python Installation python --version 3>NUL if errorlevel 1 goto errorNoPython :: Reaching here means Python is installed. :: Execute stuff... :: Once done, exit the batch file -- skips executing the errorNoPython section goto:eof :errorNoPython echo. echo Error^: Python not installed "C:\Program Files\used\systems\innoventiq\accumanager\required\excutables\python-3.7.3-amd64.exe"
Related Posts:
- Windows equivalent to UNIX pwd
- “rm -rf” equivalent for Windows?
- “rm -rf” equivalent for Windows?
- How do I kill the process currently using a port on localhost in Windows?
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- Ping with timestamp on Windows CLI
- What is the Windows equivalent of the diff command?
- Changing all files’ extensions in a folder with one command on Windows
- What is the reason for the error message “System cannot find the path specified”?
- How to run powershell script from .ps1 file?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ” is not recognized as an internal or external command, operable program or batch file
- How can I open a cmd window in a specific location?
- Create an empty file on the commandline in windows (like the linux touch command)
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- ” is not recognized as an internal or external command, operable program or batch file
- Access is denied in windows cmd.Why?
- How to “comment-out” (add comment) in a batch/cmd?
- The filename, directory name, or volume label syntax is incorrect inside batch
- Moving file using cmd?
- How to force `findstr` to ignore `Cannot open` returns
- How to “comment-out” (add comment) in a batch/cmd?
- “if not exist” command in batch file
- “if not exist” command in batch file
- Defining and using a variable in batch file
- How to run PowerShell in CMD
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- What is the reason for the CD /D switch in Windows cmd?
- PHP is not recognized as an internal or external command in command prompt
- ‘openssl’ is not recognized as internal or external command
- XCOPY: Overwrite all without prompt in BATCH
- Curl not recognized as an internal or external command, operable program or batch file
- Redirecting Output from within Batch file
- How does the echo command works in batch programming
- How to split large text file in windows?
- Windows CMD command for accessing usb?
- How do I use spaces in the Command Prompt?
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Command prompt won’t change directory to another drive
- How to extract or unpack an .ab file (Android Backup file)
- Desktop: The system cannot find the specified path
- Unexplained crashes related to ntdll.dll
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- Install an apk file from command prompt?
- “Javac” doesn’t work correctly on Windows 10
- ‘git’ is not recognized as an internal or external command
- How to run a PowerShell script
- javac not working in windows command prompt
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- git clone: Authentication failed for
- Git Bash won’t run my python files?
- How to install xgboost in Anaconda Python (Windows platform)?
- how to edit or see the source code for dll files
- What installed Windows Kits
- How to find the Windows version from the PowerShell command line
- How to install pytorch in windows?
- How to get rid of Checkstyle message ‘File does not end with a newline.’
- Trying to use bash on Windows and got no installed distributions message
- How to downgrade the installed version of ‘pip’ on windows?
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- JAVA_HOME should point to a JDK not a JRE
- npm ERR! No git binary found in $PATH
- Cannot open Windows.h in Microsoft Visual Studio
- How to run Pip commands from CMD
- cat not recognised as an internal or external command
- How to send a simple email from a Windows batch file?
- ImportError: cannot import name NUMPY_MKL
- How can I do GUI programming in C?
- What does /p mean in set /p?
- How to delete a file after checking whether it exists
- Python official installer missing python27.dll
- What is the source of the data for the ProgramFiles, ProgramW6432Dir, ProgramFilesDir (x86), CommonProgramFiles environment variables?
- batch file from scheduled task returns code 2147942401
- In Windows cmd, how do I prompt for user input and use the result in another command?
- Aliases in Windows command prompt
- Difference between $? and $LastExitCode in PowerShell
- Gem installation error: You have to install development tools first
- You require permission from “Myself” to delete folder – how to fix
- When attempting to update a self-hosted WordPress site, I’m seeing “ASN1 unknown message digest algorithm”
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”
- Windows 7 download WordPress and load into LAMP stack and configure
- One-click WP site generation wih wp-cli on Windows
- strange behaviour with “rin” in brand new installation of 4.6.1 [closed]
- Windows-hosted new site shows no preview: “Future home of something quite cool.” message is displayed
- Problems with ‘require (./xxx)’ on IIS7.5
- Failed to upload image on localhost
- Useful Command-line Commands on Windows
- How to refresh hosts file without rebooting
- Resolve host name from IP address
- Run a .bat file in a scheduled task without a window
- What port should I open to allow remote desktop?
- How do I force sync the time on Windows Workstation or Server?
- Where can I find data stored by a Windows Service running as “Local System Account”?
- What is this IP address: 169.254.169.254?
- How to determine the hostname from an IP address in a Windows network?
- Alternatives to Splunk?
- ‘wp’ is not recognized as an internal or external command, operable program or batch file