Author: kuiyuyou@gmail.com
File: aoiwhich.py

#// What this module does?
This module mimic Linux |which.exe| on Windows using Python.

Given a name, say "abc", this program will search every directory listed in Windows
environment variable |PATH|, for "executable" files that has name "abc".

#// What "executable" means?
Unlike Linux |which.exe| that uses executable bit to determine whether a file is
executable, on Windows we use file extension to determine whether a file is
executable. If a file's extension is |.exe|, |.bat|, or any other extension
defined in Windows environment variable |PATHEXT|, then the file is considered as
executable. This definition of "executable" complies with how Windows |cmd.exe|
thinks.

#// Command Line Usage:
aoiwhich.py notepad

aoiwhich.py regedit

Project Samples

Project Activity

See All Activity >

Follow aoiwhich

aoiwhich Web Site

You Might Also Like
One Platform. Total IT Insight. Start with PRTG Now Icon
One Platform. Total IT Insight. Start with PRTG Now

Rely on a single source of truth. PRTG unifies monitoring for all your systems, apps, and services.

Why settle for fragmented monitoring? PRTG consolidates everything - servers, VMs, network devices, cloud services, and more, into one powerful platform. Get real-time status, customizable alerts, and deep analytics to drive smarter decisions. Designed for complex environments, PRTG scales with your needs, supports team collaboration, and helps you prevent outages before they impact users. Take control of your IT landscape and deliver the uptime your business requires.
Start Your Free PRTG Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of aoiwhich!

Additional Project Details

Registered

2012-04-01