Re: Autolaunch a .bat file

From: Yannick Chamming's [eMVP] (ychammings_nospam_at_adeset.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 08:16:55 +0100

As long as the Hard Disk directory is available, you should be able to
launch something from it. Now, I'm not sure that CE is able to launch .bat
files. I think you'd better try launching cmd.exe with the right options.

One thing you have to know : the HKLM\Init key startup mechanism
automatically add to command line of the process launched the "Launch
number" (in your case : 40). Maybe you should consider using the startup
directory, which basically have the same goal, but at a more "applicative
level".

--
----------------------------------------------------------------
Yannick Chamming's (eMVP)
ADESET
Windows Embedded Manager
ychammings AT adeset DOT com>
http://www.adeset.com
Tél  : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Michael--J" <MichaelJ@discussions.microsoft.com> wrote in message
news:64326806-B444-4476-9D4B-B7CC8EC0C532@microsoft.com...
> I tried changing the registry to:
>
> [HKEY_LOCAL_MACHINE\init]
>      "Launch40"="\HardDisk\patch.bat"
>
> But it still doesn't work. The contents of my batch file is this:
> MOVE "\HardDisk\file.txt" "\HardDisk\test\file.txt"
> CLS
>
> Does the file specified in the registry have to be part of the OS image?
> Does it need to be an .exe or can it be a .bat? Can it be located in the
> \HardDisk? Thanks.
>
> "Michael--J" wrote:
>
> > Hi,
> >
> > is there any way of autolaunching a batch file in CE 5.0? All i want to
do
> > is basically rename, delete, and move some files upon startup. I have
tried
> > the following:
> >
> > [HKEY_LOCAL_MACHINE\init]
> >     "Launch40"="patch.bat"
> >
> > [HKEY_LOCAL_MACHINE\Loader]
> >     "SystemPath"=multi_sz:"\\HardDisk","\\Release\\"
> >
> > patch.bat is the batch file i want to execute and is located in
\HardDisk. I
> > tried this out but it didn't work because the associated files i wanted
to
> > change didn't change. Is there another approach to this? Thanks


Relevant Pages

  • Re: Installing Two Operating Systems 4 Speed
    ... No doubt an XClent advice but how 2 create a batch file to launch only ... MS-Office on startup and refraining other? ... "only and only" load Windows and MS-Office? ...
    (microsoft.public.windowsxp.general)
  • Re: Installing Two Operating Systems 4 Speed
    ... Log on under your own account. ... Launch msconfig.exe via the Start/Run menu. ... Click the Startup tab in MSConfig. ... While installing two versions of Windows might speed up your wife's ...
    (microsoft.public.windowsxp.general)
  • Re: Installing Two Operating Systems 4 Speed
    ... Log on under your own account. ... Launch msconfig.exe via the Start/Run menu. ... Click the Startup tab in MSConfig. ... While installing two versions of Windows might speed up your wife's ...
    (microsoft.public.windowsxp.general)
  • Re: /sigh/ Latops in a domain...
    ... If you want to launch two applications before the logon screen appears, ... applications and make the batch file as Startup scripts. ... >> You may add all laptop users to a Group in AD, ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: /sigh/ Latops in a domain...
    ... > If you want to launch two applications before the logon screen appears, ... > applications and make the batch file as Startup scripts. ...
    (microsoft.public.windowsxp.configuration_manage)