-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

Showing posts with label system. Show all posts
Showing posts with label system. Show all posts
  • Software Installation Checker in Batch Scripting

     

     

    Software Installation Checker in Batch Scripting

     

    Software Installation Checker in Batch Scripting | Check if a Program is Installed


    As an IT Support Engineer or System Administrator, you may need to verify whether a particular application is installed on a computer. Instead of searching manually, you can automate this task using a simple Batch Script.

    In this tutorial, we'll create a **Software Installation Checker** that checks whether **Google Chrome** is installed on a Windows computer.


    Batch Script

      
    @echo off
    
    where chrome
    
    if %errorlevel%==0 (
    
    echo Google Chrome Installed
    
    ) else (
    
    echo Google Chrome Not Installed
    
    )
    
    pause
      




    How the Script Works


    #Step 1: Turn Off Command Display
    @echo off


    This hides the commands while the script runs, making the output cleaner.


    #Step 2: Search for the Software

    • where chrome



    The `where` command searches for the executable file (`chrome.exe`) in the system's PATH.

    • * If found, Windows displays the file location.
    • * If not found, the command reports that it could not find the file.



    #Step 3: Check the Result Using ERRORLEVEL

    • if %errorlevel%==0 (



    If the `where` command successfully finds Chrome, `ERRORLEVEL` is set to **0**.

    Output:

    • Google Chrome Installed
    • Otherwise, the script displays:
    • Google Chrome Not Installed





    #Step 4: Pause the Script

    • pause


    This keeps the Command Prompt window open so you can read the result.


    Sample Output (Installed)

    • C:\Program Files\Google\Chrome\Application\chrome.exe


    Google Chrome Installed
    Press any key to continue . . .




    Sample Output (Not Installed)

    INFO: Could not find files for the given pattern(s).

    Google Chrome Not Installed

    Press any key to continue . . .


    Why Use a Software Installation Checker?


    This script helps you:

    • * Quickly verify software installation
    • * Save troubleshooting time
    • * Avoid manual searching
    • * Automate routine IT tasks
    • * Simplify software audits




    Checking Other Applications


    You can replace `chrome` with the name of another executable.

    Examples:

    • where notepad
    • where python
    • where java
    • where git
    • where code



    This makes the script reusable for checking different software.


    Real-World Uses


    IT Support Engineers use similar scripts to:

    * Verify required software during system setup
    * Troubleshoot missing applications
    * Check developer tools
    * Validate software before deployment
    * Perform inventory checks



    Commands Used



    Interview Questions


    #What does the `where` command do?

    • It searches for an executable file in the directories listed in the system PATH.


    #What does `ERRORLEVEL` indicate?

    • It stores the result of the previously executed command.


    #What does `ERRORLEVEL = 0` mean?

    • The command executed successfully.


    #Can this script check software other than Chrome?

    • Yes. Replace `chrome` with the executable name of the software you want to check.


    #Why is automation useful for software verification?

    • It speeds up repetitive tasks and reduces manual effort during troubleshooting and system maintenance.



    Limitations


    The `where` command only finds programs whose executable files are available in the system PATH. Some installed applications may not appear if their installation directory isn't included in PATH. For those cases, more advanced methods such as checking the Windows Registry or using PowerShell are often used.


    Conclusion


    A Software Installation Checker is a simple yet practical Batch Scripting project that automates software verification on Windows systems. By combining the `where` command with `ERRORLEVEL`, you can quickly determine whether an application is available.

    This project is an excellent addition to your Batch Scripting portfolio and demonstrates a real-world automation task that is useful for IT Support Engineers, Desktop Support Engineers, and System Administrators.




  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.