RE: Autolaunch a .bat file

From: Michael--J (MichaelJ_at_discussions.microsoft.com)
Date: 11/30/04


Date: Mon, 29 Nov 2004 21:19:02 -0800

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: Registry Entries to call a Batch file
    ... the registry is maintained when the power is cycled. ... on startup, I always require wceload to install the .cab file. ... I thought I could do this with a batch file but the manufacturer tells me ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: run ones from gpo
    ... ok but how can I check registry value on batch file and to a IF Function? ... how can I check the value with if function and skip the run command on batch ... You can create a GPO to execute a command/script on startup,shutdown,logon ...
    (microsoft.public.windows.group_policy)
  • logic checks on regestry keys
    ... I want to write a simple batch file to do logic checks against the registry. ... I don't want to modify the registry in anyway, just to a check and then ... execute another part of the batch file. ...
    (microsoft.public.win2000.registry)
  • Re: Startup programs
    ... the batch file in the registry start list, ... >OR you could set up a master batch file that runs the ... >> startup. ...
    (microsoft.public.windowsxp.general)
  • Re: Batch file and MFC
    ... ShellExecute will look up the .bat file name and launch a process that will execute the ... Overall, I find the batch file approach to be rather primitive, a real throwback ... able to cause a restart of the system. ... nearly all the historical reasons for requiring a restart have gone away. ...
    (microsoft.public.vc.mfc)