CMD what does /im (taskkill)?

It tells taskkill that the next parameter something.exe is an image name, a.k.a executable name C:\>taskkill /? TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] Description: This tool is used to terminate tasks by process id (PID) or image name. Parameter List: /S system Specifies … Read more

find path of current folder – cmd

2015-03-30: Edited – Missing information has been added To retrieve the current directory you can use the dynamic %cd% variable that holds the current active directory set “curpath=%cd%” This generates a value with a ending backslash for the root directory, and without a backslash for the rest of directories. You can force and ending backslash … Read more

How can I shorten the path of a DOS prompt?

To remove the path from the prompt use ‘prompt $g’ which will just show the chevron. You can then use the ‘cd’ command anytime to see the directory you are in. E.g. C:\Windows\System32\drivers\etc>prompt $g > >cd C:\Windows\System32\drivers\etc >

.bat files, nonblocking run/launch

start “MY EXE” my.exe That kicks the exe off in the background (and avoids title issues, see below). The start command offers some options too, use start /? to list them: C:>start /? Starts a separate window to run a specified program or command. START [“title”] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW … Read more