Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

Which (GPL)

"Which.bat" is Windows batch program that output the full executable path if found. It does the same thing that the UNIX "which" command performs:

"Which.bat" takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH."

"Which.bat" takes advantage of the following batch files. They are also available on this web site. So to use "Which.bat", you'll have to download these other batch scripts, if you don't already have them.

GetTempPathName.bat
SetNumberOfArguments.bat
SetVariableToOutput.bat

"Which.bat" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. If you make changes to this batch file, please feel free to upload it back here to share it with others.

Usage

Which.bat "executable"

Examples

C:\>Which Notepad
C:\WINDOWS\system32\notepad.exe
C:\WINDOWS\notepad.exe

C:\>Which.bat "regedit.exe"
C:\WINDOWS\regedit.exe

Attached File: Which.bat (1 KB)

Chieh Cheng
Mon, 26 Apr 2010 22:29:59 +0000

Updated this batch script to also look for the executable in the current directory. Also added the "MSI" extension to the list of possible executables.

Attached File: 1 - Which.bat (1 KB)

Chieh Cheng
Mon, 28 Jan 2019 19:03:19 -0800

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Could not reserve enough space for 2097152KB object heap
Weblog: GearHack
Excerpt: Today, I tried to start up the Minecraft server for my kids. I had already set it all up in a script, which I can just double-click to start. But the Minecraft server didn't start. Instead, I got the following Java error message: Error occurred during initialization of VM Could not reserve enough sp . . .
Tracked: Sat, 31 Jan 2015 22:13:23 +0300

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 3 + 6?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

110 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.