PC Review
Forums
Newsgroups
Windows XP
Windows XP Embedded
Run once
Forums
Newsgroups
Windows XP
Windows XP Embedded
Run once
![]() |
Run once |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I need to automatically execute a file.bat at first boot of the run-time
image. How can I do? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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? > > >. > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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? > > > > > >. > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

