![]() |
![]() ![]() |
Jun 15 2005, 10:04 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 15-June 05 Member No.: 12,123 |
Hi There,
How can I use the AutoRun plugin in Bart's PE Builder? I have a simple need: I want to be able to insert the cd, boot from it, and automatically start one (1) simple program, located in the root of the Bart PE cd. I know it's possible with the AutoRun plugin, but is there anybody who can explain how to? Thanks inadvance, Abbe |
|
|
|
Jun 15 2005, 10:36 AM
Post
#2
|
|
|
Platinum Member ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,343 Joined: 14-October 03 From: London UK Member No.: 2,024 |
you need a file autorun0xyz.cmd containing the commands you require to start the program.
autorun0xyz.cmd needs to be in %Windir%\system32 providing you are using nu2menu.exe as your shell and the autorun plugin is enabled (which it is by default) then autorun...cmd commands will be started with autorun0xyz.cmd coming last in the list of files. 0 can be replaced by numbers or _ - read the autorun help file you can use a plugin or copy the files to the correct location before building the ISO regards Mike Barnes |
|
|
|
Jun 16 2005, 12:49 AM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 15-June 05 Member No.: 12,123 |
Sorry, can't get this to work. After burning the cd, and booting from it, I get the option Startup in the Go-menu, but the only option in that submenu (AutoRun) is greyed out.
What I did was this: I want to run a file called ABBE.EXE. I include this in the root of the cd, using the 'Custom: (include files and folder from this directory)' option. I checked it on the cd, and the file exists. I created a file called 'autorun0xyz.cmd' containing only the text '\abbe.exe', put it in my c:\windows\system32 folder (from my 'normal' windows machine, not the PE version), and build the iso. But getting the wrong result... What am I doing wrong? |
|
|
|
Jun 16 2005, 04:16 AM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 15-June 05 Member No.: 12,123 |
Ok, got the stupidity of placing autorun0xyz.cmd in the wrong folder, ofcourse this should be in the folder system32 ON THE CD, but how do I get it there? I could copy it manually into \i386\system32, but how do I create the ISO file than? Cause every time I restart PE Builder to create the iso file, it wipes the folder BARTPE folder (where my \i386\system32 was in....).
|
|
|
|
Jun 16 2005, 06:47 AM
Post
#5
|
|
|
Titanium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 5,571 Joined: 29-August 03 From: NC, USA Member No.: 1,527 |
[SourceDisksFiles]
autorunXXXXX.cmd=2,,1 in your plugin inf file copies the cmd file to system32 -------------------- |
|
|
|
Jun 16 2005, 06:48 AM
Post
#6
|
|
|
Titanium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 5,571 Joined: 29-August 03 From: NC, USA Member No.: 1,527 |
Try reading autorun.htm in the autorun plugin directory.
-------------------- |
|
|
|
Jun 16 2005, 03:17 PM
Post
#7
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 15-June 05 Member No.: 12,123 |
Thanks, got that working. (Also just build the folder without building ISO, then copying auto0xyz.cmd manually into i386/system32 works fine too). Now it autostarts, indeed, BUT:
- A> the windows my batchfile starts in, is minimized. How can I set this up so that it maximizes? - B> if I autorun a batchfile, I get strange results. Errorlevels don't match to what they should be, etc. However, when I CTRL-BRK the operation, and restart the batchfile again, it works fine. Any idea howcome? Thanks inadvance, Abbe |
|
|
|
Jun 16 2005, 06:13 PM
Post
#8
|
|
|
Titanium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 5,571 Joined: 29-August 03 From: NC, USA Member No.: 1,527 |
Change the entry in autorun_nu2menu.xml to:
<MENU ID="Startup"> <MITEM TYPE="ITEM" DISABLED="1"> @Null(@Exec('cmd.exe /c if not [%AutoRun%]==[1] %SystemRoot%\System32\autorun.cmd',1))@Null(@SetEnvVar('AutoRun','1'))AutoRun</MITEM> </MENU> i.e. change the final parameter on the exec command. Other options can be found at: http://www.nu2.nu/nu2menu/funchlp.php#exec -------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 5th September 2010 - 09:43 PM |