Using "start" in command prompt

0rni0no

New member
Local time
2:59 PM
Messages
7
Hello

I understand what the %path% and %pathext% variables are.

typing: "notepad" or "calc" in the command prompt from any directory will open notepad.exe and calc.exe because their directories are in %path% and ".exe" is in %pathext%.

On the other hand "wordpad.exe" and "chrome.exe are not in %path% so typing "wordpad" or "chrome" from a random directory doesn't work.

however, typing "start wordpad" or "start chrome" does work. How come? How does the start command know where to find the executables?

Thanks in advance!
 

My Computer

OS
Windows 7 Ultimate x64
I don't have chrome installed but I do have wordpad installed and I can simply type Wordpad, hit enter and Wordpad starts.
 

My Computer

Computer Manufacturer/Model Number
Toshiba Satellite S875D-S7239 laptop
OS
MS Windows 7 Ultimate SP1 64-bit
CPU
AMD A10-4600M
Motherboard
AMD Pumori (Socket FT1)
Memory
6.00 GB Dual-Channel DDR3 @ 798MHz (11-11-12-28)
Graphics Card(s)
AMD Radeon HD 7660G
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic PnP Monitor (1600x900@60Hz)
Screen Resolution
1600x900@60Hz
Hard Drives
SSD 119GB Corsair CSSD-V128GB2 ATA Device
Keyboard
Standard PS/2 Keyboard
Mouse
HP Wireless Optical Mobile Mouse Model FHA-3410
Internet Speed
What the local pub, local coffee shop offers.
Other Info
Optical Drive:MATSHITA BD-CMB UJ160B ATA Device


Also have an Asus ha1002xp netbook with Win 7 Ultimate installed.
Wordpad is very much located in the path (C:\windows\system32\write.exe), thats why it opens from the run box.
 

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
Typing write works
Typing wordpad doesn't work (seems to work for karlsnooks)
Typing "start wordpad" works! My question is how come.

I figured it out. When you use the start command, in addition to looking in the %path% it looks at all file types.

For example if I type "ftype" in the command line, I get:

ChromeHTML="C:\Users\Ralph\AppData\Local\Google\Chrome\Application\chrome.exe" -- "%1"
...
Wordpad.Document.1="%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE" "%1"

I tested out other programs to confirm:
"start iexplore"
"start winamp"
 

My Computer

OS
Windows 7 Ultimate x64
As long as there is a subkey for the program under this registry key, it can be launched from the Run box.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

This is not true from a Command Prompt.Try this from the run box or a Command Prompt (all on one line):

cmd /c reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" /s > app_paths.txt & notepad app_paths.txt & del app_paths.txt


Notepad will open with the contents of that registry key then delete the file when you close notepad.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top