PC Review Forums Newsgroups Windows XP Windows XP Embedded Run once

Reply

Run once

 
Thread Tools Rate Thread
Old 27-08-2003, 10:35 AM   #1
Gianluca Facca
Guest
 
Posts: n/a
Default Run once


I need to automatically execute a file.bat at first boot of the run-time
image.
How can I do?


  Reply With Quote
Old 27-08-2003, 11:25 AM   #2
Heidi Linda
Guest
 
Posts: n/a
Default Run once

I never got this to work properly, but you should be able
to do this by setting the run phase of the component which
runs the .bat.
>-----Original Message-----
>I need to automatically execute a file.bat at first boot

of the run-time
>image.
>How can I do?
>

  Reply With Quote
Old 27-08-2003, 02:23 PM   #3
Sherrie Beek
Guest
 
Posts: n/a
Default Run once

Hello,

XP Embedded actually has several ways to accomplish this.
If you only want a batch file to run you can go directly
into Target Designer under your configuration and
select "extra files". You can add the batch file here.
If your file requires any registry data you can add it
here as well. Then you can add the Resource
called "RunOnce Request" for a program that needs to
execute at first boot of the run-time image and you
specify the filepath here as well.


You can also create a custom component in Component
Designer. Add the file.bat file to your component and
fill in the Add Component file resource box. Then you can
choose to add a resource called "RunOnce Request" This key
will run your batch file during First Boot of the run-time
image.

I hope this helps.

Sherrie Beek
Technical Trainer
VenturCom, Inc
www.vci.com



>-----Original Message-----
>I need to automatically execute a file.bat at first boot

of the run-time
>image.
>How can I do?
>
>
>.
>

  Reply With Quote
Old 28-08-2003, 10:17 AM   #4
Gianluca Facca
Guest
 
Posts: n/a
Default Re: Run once

Thank You Linda and Sherrie!

"Sherrie Beek" <sbeek@vci.com> ha scritto nel messaggio
news:0d7c01c36c9e$6f45e4f0$a101280a@phx.gbl...
> Hello,
>
> XP Embedded actually has several ways to accomplish this.
> If you only want a batch file to run you can go directly
> into Target Designer under your configuration and
> select "extra files". You can add the batch file here.
> If your file requires any registry data you can add it
> here as well. Then you can add the Resource
> called "RunOnce Request" for a program that needs to
> execute at first boot of the run-time image and you
> specify the filepath here as well.
>
>
> You can also create a custom component in Component
> Designer. Add the file.bat file to your component and
> fill in the Add Component file resource box. Then you can
> choose to add a resource called "RunOnce Request" This key
> will run your batch file during First Boot of the run-time
> image.
>
> I hope this helps.
>
> Sherrie Beek
> Technical Trainer
> VenturCom, Inc
> www.vci.com
>
>
>
> >-----Original Message-----
> >I need to automatically execute a file.bat at first boot

> of the run-time
> >image.
> >How can I do?
> >
> >
> >.
> >



  Reply With Quote
Old 28-08-2003, 05:54 PM   #5
Rick
Guest
 
Posts: n/a
Default Re: Run once

Funny, I tried all the above but the only way I got this to work was
to use an explorer shell (command shell did not work) I created a
component which included cmd.exe as well as my batch file and included
it in the RUN registry entry (RUN ONCE means just that run one time
only, not every time it boots)
This message is brief, if you need more detailed elaboration please
let me know Good luck,
Rick Eis
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off