Yabbie,
I don't think you would be able to change the working directory from
%Systemroot%\system32. I guess that is by design since winlogon.exe
(winlogon/minlogon) running from there and does not change the working
directory inside. There is no a registry value like "working dir" on the
same level as a shell exe ([HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\"Shell"]) either.
As being said, you most likely need to create your own app (a very simple
one, just to call SetCurrentDir and CreateProcess) that will be considered
as a shell and will launch your company's application (and whatever you need
more). Your "small" app does not have to have any GUI, I think.
As Slobodan pointed out opportunely, you may use a .bat (or .cmd) file
instead of the "small exe" mentioned above. However, this way you gain a
side effect - end user may see a command prompt window appearing on the
screen ("blinking the screen" for a quick time) at the boot time.
Good luck,
KM
Y> Hi KM,
Y> The startup section I refered to is the same one you highlighted, but
Y> like I said, I suspected that wouldn't work.
Y> Here is my situation in a little more detail. My company has written
Y> an application that currently runs on Windows 2000. It is just a
Y> regular program, not a shell or anything. I am investigating the
Y> possibility of moving to XPe. I want our program to become the shell
Y> using minlogon if possible, but I don't want to have to modify our
Y> application to do this.
Y> Is this possible ? If not, what is involved in making a 'shell'
Y> application as opposed to a 'regular' application ?
Y> The thing holding me back at the moment, is the application accesses
Y> files in various directories below the "bin" directory. Since the
Y> custom shell (our app) *seems* to run in the system32 directory, it
Y> complains it can't find the required directories. If I could change
Y> the working directory of the custom shell (but NOT in the application
Y> itself), I'd be laughing.
Y> Any further suggestions ?
Y> Thanks,
Y> Brad (Yabbie)
Y>>> Hello again everyone.
Y>>> Firstly, thanks for all the advice.
Y>>> Kesavan, I thought about a stub.exe, but to me at least, that seems
Y>>> like a hack, surely there is a nicer way ?
Y>>> My latest attempt was to put a shortcut in the startup section of
Y>>> the start menu, but as I suspected Minlogon doesn't seem to support
Y>>> that.
Y>>> Anyone from MS have anything to add ???
With best regards, KM. E-mail: (e-mail address removed)