Re: Run Items Without Explorer
- From: "Martin Grossen, eMVP [AVNET Silica]" <martin.grossen@xxxxxxxxxxxxxxxx>
- Date: Wed, 4 Jun 2008 19:53:36 +0200
Interessting...
I use such commands even to load a shel.
I call this a batch shell.
Startup a batch command as Shell and at the end of the batch file,
I let my real shell strating up.
I testet the RUN Key in my minlogon image and it works fine....
No idea what can cause such an issue... :-(
--
Martin Grossen, eMVP
AVNET EMG Silica
Franchise Manager Microsoft Embedded Europe
Your competent partner for Microsoft Embedded licencing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"kthompson" <thompsonk87@xxxxxxxxx> schrieb im Newsbeitrag
news:94cc9d23-544b-4e73-b178-6d9e060cdaac@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jun 3, 3:52 pm, "Martin Grossen, eMVP [AVNET Silica]"
<martin.gros...@xxxxxxxxxxxxxxxx> wrote:
Hi Kyle
Of course, you can not use the FBA (First Boot Agent) or
the RunOnce.
Per naming and definition, both will only processed during the first boot
of the system.
The standard RUN key in the registry will help you.
(HKLM/Software/Microsoft/Windows/Current Version/Run)
You can do this easely (to test) by adding a "Extra Registry Data" and
the
batch as a "Extra File" resource int your image via Target Designer.
Of course more elegant is to cretae a own component in component designer
with the registry key and the file in a own repository.
This is the same as you can drag and drop something in the
Autostart folder of your Explorer-Shel.
The right command for the key in the registry is:
C:\System32\cmd.exe /c yourpath\yourbatch.bat
of course, you must have the component "CMD - Windows Command Processor"
included in your image.
--
Martin Grossen, eMVP
AVNET EMG Silica
Franchise Manager Microsoft Embedded Europe
Your competent partner for Microsoft Embedded licencing
Martin,
Thanks for the reply. Perhaps I was not clear enough in my original
post. I am aware that the Run key should be the solution. However, the
run key does not execute when Explorer is not running as the shell. I
just tested your instructions and it does not work even when "CMD -
Windows Command Processor" is in the image. To test, I set cmd.exe as
the shell so that explorer would not run. From there I checked the
registry and the Run key was indeed set according to your
instructions, but it still had no effect.
Just a note here, I am currently trying to run a VBScript using
wscript.exe. So my run command looks like
C:\WINDOWS\system32\wscript.exe //nologo C:\test.vbs
I have also tested batch scripts using the same settings as you
describe and get the same results either way, nothing works.
Kyle
.
- References:
- Run Items Without Explorer
- From: kthompson
- Re: Run Items Without Explorer
- From: Martin Grossen, eMVP [AVNET Silica]
- Re: Run Items Without Explorer
- From: kthompson
- Run Items Without Explorer
- Prev by Date: Needs Platform upgrade to install Rollup 1.0
- Next by Date: Re: Windows messenger
- Previous by thread: Re: Run Items Without Explorer
- Next by thread: Registry Filter
- Index(es):
Relevant Pages
|