Search code examples
windows-xpwindows-shellkiosk-mode

lost PATH while trying to set custom winlogon shell in WindowsXP


I have changed the shell key in windows registry to gain custom shell (Kiosk usage):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

I set shell key to a batch file which runs two applications as below:

start "myFirstAppTitle" "myAppPath\myApp1.exe"
start "mySecondAppTitle" "myAppPath\myApp2.exe"

Each application runs but the second application which needs some files to be excuted throws an error which says could not find dependency files. whereas the dependency files are adjoining to the exe file and the mentioned app works fine, when starts from startup.

Meanwhile when i run the batch file manually it rusn fine.

I added the PATH command to the batch file but it did't work too.


Solution

  • The problem solved strangely, i removed the title parameter of start command and it worked. In fact i used start command this fashion:

    set PATH=%PATH%;C:\MyAppPath
    start myapp.exe 
    start myapp2.exe