Eu preciso ter capacidade de iniciar o programa pelo nome do arquivo no Windows 7 como firefox.exe. Mas nada de esta discussão trabalho. ou seja, o Notepad ++ cria uma entrada nos Caminhos do Aplicativo, mas o prompt de comando ainda não consegue iniciá-lo.
Para fins de teste, eu copiei o notepad ++. Exe no System32 e, em seguida, ele poderia iniciar a partir da linha de comando.
Assim, parece que o Windows / linha de comando ignora / falha ao ver a variável de ambiente PATH e o registro de caminhos de aplicativos.
Entradas do PATH:
C: \ Arquivos de programas \ Broadcom \ Broadcom 802.11; C: \ Arquivos de programas (x86) \ AMD APP \ bin \ x86_64; C: \ Arquivos de programas (x86) \ AMD APP \ bin: \ Windows \ System32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Arquivos de Programas (x86) \ ATI Technologies \ ATI.ACE \ Core-Static; C: \ Arquivos de Programas \ MATLAB \ R2015a \ runtime \ win64; C: \ Arquivos de Programas \ MATLAB \ R2015a \ bin; C: \ Arquivos de Programas \ MATLAB \ R2012a \ runtime \ win64; C : \ Arquivos de programas \ MATLAB \ R2012a \ bin; C: \ Arquivos de programas (x86) \ Windows Kits \ 8.1 \ Kit de ferramentas de desempenho do Windows \; C: \ Arquivos de programas \ Microsoft SQL Server \ 110 \ Ferramentas \ Binn \; C: \ Arquivos de programas (x86) \ Microsoft SDKs \ TypeScript \ 1.0 \; C: \ Arquivos de programas (x86) \ AMD \ ATI.ACE \ Core-Static; C: \ Arquivos de programas (x86) \ Arquivos comuns \ Acronis \ SnapAPI \; C: \ Arquivos de programas \ Java \ jdk1.8.0 \ bin; C: \ Arquivos de programas (x86) \ MiKTeX 2.9 \ miktex \ bin \; C: \ Arquivos de Programas (x86) \ Notepad ++ \
Caminho do aplicativo de registro:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths]
"Path"="C:\\Program Files\\IDT\\"
@="C:\\Program Files\\IDT\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe]
@="C:\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\AcroRd32.exe"
"Path"="C:\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\acs.exe]
@="C:\\Program Files\\Agnitum\\Outpost Security Suite Pro\\acs.exe"
"Path"="C:\\Program Files\\Agnitum\\Outpost Security Suite Pro"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\cmmgr32.exe]
"CmstpExtensionDll"="C:\\Windows\\system32\\cmcfg32.dll"
"CmNative"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CyberLink Media Suite10]
"Path"="C:\\Program Files (x86)\\CyberLink\\Media Suite"
@="C:\\Program Files (x86)\\CyberLink\\Media Suite\\PS.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe]
@="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\devenv.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\dexplore.exe]
@="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Help 8\\dexplore.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\dvdmaker.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,25,00,5c,00,44,00,56,00,44,00,20,00,4d,00,61,00,6b,00,65,00,72,00,\
5c,00,64,00,76,00,64,00,6d,00,61,00,6b,00,65,00,72,00,2e,00,65,00,78,00,65,\
00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ENScript.exe]
"Path"="C:\\Program Files (x86)\\Evernote\\Evernote\\"
@="C:\\Program Files (x86)\\Evernote\\Evernote\\ENScript.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Evernote.exe]
"Path"="C:\\Program Files (x86)\\Evernote\\Evernote\\"
@="C:\\Program Files (x86)\\Evernote\\Evernote\\Evernote.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EvernoteClipper.exe]
"Path"="C:\\Program Files (x86)\\Evernote\\Evernote\\"
@="C:\\Program Files (x86)\\Evernote\\Evernote\\EvernoteClipper.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\EXCEL.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"SaveURL"="1"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ExtraChm.exe]
"Path"=""
@="C:\\Program Files (x86)\\ExtraToolBox\\ExtraChm\\ExtraChm.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe]
@="C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"
"Path"="C:\\Program Files (x86)\\Mozilla Firefox"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\GROOVE.EXE]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\GROOVE.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEDIAG.EXE]
@="C:\\Program Files\\Internet Explorer\\IEDIAGCMD.EXE"
"Path"="C:\\Program Files\\Internet Explorer;"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEDIAGCMD.EXE]
@="C:\\Program Files\\Internet Explorer\\IEDIAGCMD.EXE"
"Path"="C:\\Program Files\\Internet Explorer;"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE]
@="C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE"
"Path"="C:\\Program Files\\Internet Explorer;"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE\SupportedProtocols]
"https"=""
"about"=""
"mhtml"=""
"mk"=""
"file"=""
"ftp"=""
"res"=""
"local"=""
"http"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\infopath.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\INFOPATH.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\install.exe]
"BlockOnTSNonInstallMode"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\javaws.exe]
@="C:\\Program Files (x86)\\Java\\jre1.8.0_65\\bin\\javaws.exe"
"Path"="C:\\Program Files (x86)\\Java\\jre1.8.0_65\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Journal.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,4a,00,\
6f,00,75,00,72,00,6e,00,61,00,6c,00,5c,00,4a,00,6f,00,75,00,72,00,6e,00,61,\
00,6c,00,2e,00,65,00,78,00,65,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\LyX.exe]
@="C:\\Program Files (x86)\\LyX 2.1\\bin\\lyx.exe"
"OnlyWithLyX"="Yes213"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\matlab.exe]
@="C:\\Program Files\\MATLAB\\R2015a\\bin\\matlab.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mfbclient.exe]
@="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\mfbclient.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mip.exe]
@=hex(2):25,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,50,00,72,00,6f,00,67,00,72,\
00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,4d,00,69,00,63,00,\
72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,00,68,00,61,00,72,00,65,00,64,\
00,5c,00,49,00,6e,00,6b,00,5c,00,6d,00,69,00,70,00,2e,00,65,00,78,00,65,00,\
00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mpc-hc.exe]
@="C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC\\mpc-hc.exe"
"Path"="C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mpc-hc64.exe]
@="C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC64\\mpc-hc64.exe"
"Path"="C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC64"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mplayer2.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,64,00,\
6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,00,61,\
00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,72,00,\
2e,00,65,00,78,00,65,00,00,00
"Path"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
00,61,00,79,00,65,00,72,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MSACCESS.EXE]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\MSACCESS.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MsoHtmEd.exe]
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msoxmled.exe]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\OFFICE14\\MSOXMLED.EXE"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MSPUB.EXE]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\MSPUB.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"=dword:00000001
"SaveURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mtm.exe]
@="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\mtm.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad++.exe]
@="C:\\Program Files (x86)\\Notepad++\\notepad++.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ois.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office14\\OIS.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office14\\"
"SaveURL"="0"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OneNote.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\ONENOTE.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"SaveURL"="1"
"useURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\OUTLOOK.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pbrush.exe]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,00,\
70,00,61,00,69,00,6e,00,74,00,2e,00,65,00,78,00,65,00,00,00
"Path"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Power2Go8]
"Path"="C:\\Program Files (x86)\\CyberLink\\Power2Go8"
@="C:\\Program Files (x86)\\CyberLink\\Power2Go8\\Power2Go8.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Power2GoExpress8.exe]
@="\"C:\\Program Files (x86)\\CyberLink\\Power2Go8\\Power2GoExpress8.exe\""
"path"="\"C:\\Program Files (x86)\\CyberLink\\Power2Go8\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PowerDirector10]
"Path"="C:\\Program Files (x86)\\CyberLink\\PowerDirector10"
@="C:\\Program Files (x86)\\CyberLink\\PowerDirector10\\PDR10.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\powerpnt.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\POWERPNT.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"="1"
"SaveURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PowerShell.exe]
@="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\PowerShell.exe"
"Path"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PowerStarter]
"Path"="C:\\Program Files (x86)\\CyberLink\\Media Suite"
@="C:\\Program Files (x86)\\CyberLink\\Media Suite\\PS.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\setup.exe]
"BlockOnTSNonInstallMode"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\sidebar.exe]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
53,00,69,00,64,00,65,00,62,00,61,00,72,00,5c,00,73,00,69,00,64,00,65,00,62,\
00,61,00,72,00,2e,00,65,00,78,00,65,00,22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SnippingTool.exe]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,6e,00,\
69,00,70,00,70,00,69,00,6e,00,67,00,54,00,6f,00,6f,00,6c,00,2e,00,65,00,78,\
00,65,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SoftPaqDownloadManager.exe]
@="C:\\PROGRA~2\\HEWLET~1\\HPSOFT~2\\SOFTPA~1.EXE"
"Path"="C:\\Program Files (x86)\\Hewlett-Packard\\HP SoftPaq Download Manager\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SopCast.exe]
@="C:\\Program Files (x86)\\SopCast\\SopCast.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\table30.exe]
"UseShortName"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TabTip.exe]
@=hex(2):25,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,50,00,72,00,6f,00,67,00,72,\
00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,6d,00,69,00,63,00,\
72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,73,00,68,00,61,00,72,00,65,00,64,\
00,5c,00,69,00,6e,00,6b,00,5c,00,54,00,61,00,62,00,54,00,69,00,70,00,2e,00,\
65,00,78,00,65,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\visio.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office14\\VISIO.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office14\\"
"useURL"="1"
"SaveURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vsta.exe]
@="C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\IDE\\vsta.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vstoee.dll]
"UseURL"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wab.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,4d,00,\
61,00,69,00,6c,00,5c,00,77,00,61,00,62,00,2e,00,65,00,78,00,65,00,00,00
"Path"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
4d,00,61,00,69,00,6c,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wabmig.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,4d,00,\
61,00,69,00,6c,00,5c,00,77,00,61,00,62,00,6d,00,69,00,67,00,2e,00,65,00,78,\
00,65,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe]
@="C:\\Program Files\\WinRAR\\WinRAR.exe"
"Path"="C:\\Program Files\\WinRAR"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe]
@="C:\\PROGRA~2\\MICROS~1\\Office12\\WINWORD.EXE"
"Path"="C:\\Program Files (x86)\\Microsoft Office\\Office12\\"
"useURL"="1"
"SaveURL"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmplayer.exe]
@=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,\
00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,64,00,\
6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,00,61,\
00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,72,00,\
2e,00,65,00,78,00,65,00,00,00
"Path"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
00,61,00,79,00,65,00,72,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
4e,00,54,00,5c,00,41,00,63,00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,\
00,73,00,5c,00,57,00,4f,00,52,00,44,00,50,00,41,00,44,00,2e,00,45,00,58,00,\
45,00,22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WRITE.EXE]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
4e,00,54,00,5c,00,41,00,63,00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,\
00,73,00,5c,00,57,00,4f,00,52,00,44,00,50,00,41,00,44,00,2e,00,45,00,58,00,\
45,00,22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\YouCam]
"Path"="C:\\Program Files (x86)\\CyberLink\\YouCam"
@="C:\\Program Files (x86)\\CyberLink\\YouCam\\YouCam.exe"
fonte
Respostas:
Remova o espaço antes
C:\
da última entrada no PATH; C:\Program Files (x86)\Notepad++\
.O acima deve corrigir o problema Notepad ++. Para outros programas, publique sua localização exata e as entradas relacionadas nos caminhos PATH ou App.
[EDIT] Ao iniciar programas que estão registrados em Caminhos do Aplicativo (mas não na variável de ambiente PATH), é necessário usar explicitamente
start
.Por exemplo, apenas
notepad++
vai dar umnot recognized
erro no prompt do cmd, masstart "" "notepad++"
(ou simplesmentestart notepad++
se o nome não contiver espaços ou outros caracteres especiais) executará o .exe do local nos Caminhos do aplicativo.fonte
start
, veja minha edição. É por isso que ajuda a fornecer todos os detalhes relevantes antecipadamente.start program by the file name
. A resposta éstart notepad++
. Você também disse que nada do thread ligado funcionava para você, mas a questão em si foi perguntadahave tried the command line START any_program.exe, but ...
. De qualquer forma, eu entendo que você está trabalhando agora. Tudo está bem, o que acaba bem, só tende a acabar mais cedo, quanto mais completa a questão é para começar.start
e execução direta no prompt do cmd. Acabei de postar um comentário para esclarecer, não que eu ache que muitos o leiam 3 anos após o fato.