Run once

  • Thread starter Thread starter Gianluca Facca
  • Start date Start date
G

Gianluca Facca

I need to automatically execute a file.bat at first boot of the run-time
image.
How can I do?
 
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.
 
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
 
Thank You Linda and Sherrie!

Sherrie Beek said:
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
 
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
 
Back
Top