Re: Autolaunch a .bat file
From: Yannick Chamming's [eMVP] (ychammings_nospam_at_adeset.com)
Date: 11/30/04
- Next message: youhua.wang: "Re: Disable Key/Mouse message until User App startup , Is it feasible ?"
- Previous message: Yannick Chamming's [eMVP]: "Re: CEPC dies after x86init"
- In reply to: Michael--J: "RE: Autolaunch a .bat file"
- Next in thread: Michael--J: "Re: Autolaunch a .bat file"
- Reply: Michael--J: "Re: Autolaunch a .bat file"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: youhua.wang: "Re: Disable Key/Mouse message until User App startup , Is it feasible ?"
- Previous message: Yannick Chamming's [eMVP]: "Re: CEPC dies after x86init"
- In reply to: Michael--J: "RE: Autolaunch a .bat file"
- Next in thread: Michael--J: "Re: Autolaunch a .bat file"
- Reply: Michael--J: "Re: Autolaunch a .bat file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|