Windows: How to open .exe in a shell window that will not be closed?

I have had this problem for ages, and it IS SUCH AN INDEPENDENT.

Suppose I want to start mysqldump.exe ... here is my process: Start-> run, enter "cmd" ... dir into the directory after the directory until I finally go to c: / program files / mysql / bin / then I can FINALLY call "mysqldump.exe"

I am not opposed to using Windows Explorer to access the c: / program / mysql / bin files, but then I cannot release any of the .exe files in the shell, and I cannot open the shell with the directory that is it.

How can i do this?

+3
source share
9 answers

Microsoft powertoy Windows XP . Vista, , , shift .

+6

, :

" " .

.

: : % SystemRoot%\system32\cmd.exe/k mysqldump.exe

:: c:/ /mysql/bin/

"", " " "Mysqldump".

, . "/k" cmd.exe .

+7

: Start- > run, type "cmd"... dir , , , c:/program files/mysql/bin/, "mysqldump.exe"

?

c:
cd "c:/program files/mysql/bin"
mysqldump.exe

, .

cmd.exe " " "c:/program files/mysql/bin".

+1

, .

Vista, SHIFT-RightClick , " Windows ".

xp , .reg :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd]
@="Open Command Prompt Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd\command]
@="cmd.exe /k pushd %L"
+1

, . cmd "". .

0

python: activepython, ActiveState Website. PythonWin script. :

from subprocess import *
Call("c://program files//mysql//bin//mysqldump.exe")

script -. , . , , Python , .

0

c:/program files/mysql/bin/ ...

mysqldump.exe , cmd, " > "

0

MS PowerToy , " " - :

( -)

The ability to open a command prompt in the directory in which you are currently located by right-clicking on any empty screen space in the directory. This eliminates the need to go to a level to open a command prompt in the current directory.

In fact, clicking on a folder to open the command line with the MS tool was a shame for me ... especially since I always need to run the command line tools in my current directory at that time.

0
source

Source: https://habr.com/ru/post/1703665/


All Articles