문제

I need to add use %~dp0 to Registry suing REG_SZ in a register entry.

With the following code the app does not run at startup.

Could you point me out what am I doing wrong here?

   Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "Gate"="%~dp0 C:\\wamp\\www\\xxx\\trunk\\xxxClient\\xxxClientWPF\\xxxClientWPF\\bin\\Debug\\xxxClientWPF.exe"
도움이 되었습니까?

해결책

Try removing the space.

"Gate"="%~dp0 C:\\wamp\\www\\xxx\\trunk\\xxxClient\\xxxClientWPF\\xxxClientWPF\\bin\\Debug\\xxxClientWPF.exe"

should read like this.

"Gate"="%~dp0C:\\wamp\\www\\xxx\\trunk\\xxxClient\\xxxClientWPF\\xxxClientWPF\\bin\\Debug\\xxxClientWPF.exe"

see if this works.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top