5

I can successfully run a .cmd file by typing its name (tsc in this case):

C:\Windows\system32>tsc --version
Version 1.0.3.0

It instantly prints the result and terminates.

There is no tsc in C:\Windows\system32, so presumably it is being launched somewhere from a location specified in my %PATH%. I've searched through the drive and found a bunch of tsc.cmd files. How can I know, which of them is being launched?

Related, probably a duplicate: Windows equivalent of whereis?

enkryptor
  • 741

2 Answers2

12

The where command in cmd will tell you what you want to know:

where tsc.cmd

In this basic invocation it is the equivalent of the Unix which, though where has additional options not in the Unix command.

AFH
  • 17,958
1

Install Process Explorer.

Double-click on the tsc process will give all the information you need.

image

harrymc
  • 498,455