Re: Run Items Without Explorer



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


.



Relevant Pages

  • Re: An end to tweaking?
    ... > Batch File Lab Notes, which had so much info it boggled my mind. ... Doing /anything/ recursive with DOS batch makes my head hurt. ... bash (the default shell under Linux) is /much/ better than ... You can save that to a file and it will be a first-class command from then ...
    (comp.os.linux.misc)
  • Re: Shell or ShellExecute powercfg.cpl doesnt fire
    ... In the registry you can define an extension key, ... The command line parser ... Shell will not. ... So I guess the Rule is if something opens on the command line but doesn't ...
    (microsoft.public.vb.general.discussion)
  • Re: xp_cmdshell
    ... Just create a regular batch file, save it in the root dir and invoke ... line shell you invoke when you go to Start> Run and enter cmd. ... >> invokes a new instance of of the command line shell, ...
    (microsoft.public.sqlserver.programming)
  • Bash-4.0 available for FTP
    ... Unlike previous bash distributions, this tar file includes the formatted ... The shell has been changed to be more ... rigorous about parsing commands inside command substitutions, ... Changes have been made to the Readline library being released at ...
    (gnu.announce)
  • Why newbies dont RTFM...
    ... Even though I've used Linux before, I've never had to do any ... BASH BUILTIN COMMANDS ... last command exited within ... unless the shell is not exeâ ...
    (comp.os.linux.misc)