Where is Start stored / What does it run under?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
taripo
Posts: 228
Joined: 01 Aug 2011 13:48

Where is Start stored / What does it run under?

#1 Post by taripo » 22 Sep 2014 07:59

If I do dir start.exe /s/b<enter> I don't see it anywhere.

and if I do start /b xcopy /? <enter> so start is paused..

and looking in task manager or process explorer, I don't see start..

Also though.. When I run xcopy /? I don't even see xcopy.exe flash into and out of existence in task manager

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: Where is Start stored / What does it run under?

#2 Post by dbenham » 22 Sep 2014 08:11

START is an internal command. It is a component of CMD.EXE


Dave Benham


taripo
Posts: 228
Joined: 01 Aug 2011 13:48

Re: Where is Start stored / What does it run under?

#4 Post by taripo » 22 Sep 2014 08:35

ah thanks, of course.. like echo
(ADDED- and..good list posted there..)

And now I see xcopy(which is of course external) come up in task manager.. when it's open long enough for task manager to refresh and catch it. e.g. xcopy /L /S c:\windows\*.* c:\blah

aGerman
Expert
Posts: 4744
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Where is Start stored / What does it run under?

#5 Post by aGerman » 22 Sep 2014 13:47

I don't remember if I ever posted that code before but the following separates internal from external commands listed by the HELP command.

Code: Select all

@echo off &setlocal

set /a int=0, ext=0
for /f %%i in ('help^|findstr /rbc:"[A-Z][ABCDEFGHIJKLMNOPQRSTUVWXYZ]"') do (
  for /f "tokens=1,2 delims=?" %%j in ("%%i.exe?%%i.com") do (
    if "%%~$PATH:j%%~$PATH:k"=="" (
      call :out %%i
    ) else (
      set /a ext+=1
      echo %%i "%%~$PATH:j%%~$PATH:k"
    )
  )
)

echo(
echo internal %int%
echo external %ext%
pause>nul
goto :eof

:out
set /a int+=1
set "line=%1                                                  "
echo %line:~,50% - internal
goto :eof

Regards
aGerman

Post Reply