Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reboot from batchfile and continue the bactfile

1,458 views
Skip to first unread message

Ctrl Alt Delete

unread,
Jul 9, 2002, 4:44:20 PM7/9/02
to
Hi Xperts
Can I (no I can´t :-)) but I hope one of you can.
I need to run a batchfile to install a program, then reboot the machine, and
then continue to read the batchfile after the reboot. Someone toldes me that
it is imposible, but I will ask here before I give up. I run windows 2000
Regards
Ctrl Alt Delete


Scott Losawyer

unread,
Jul 9, 2002, 11:01:38 PM7/9/02
to
you could have two batches, one for the original install that includes a
shutdown/restart command with a registry entry for auto admin logon, then
have the other in the startup folder of all users that would erase the first
bat, undo the auto admin logon, continue what you want to do, then do
another shutdown restart and erase itself.

I did this for installing IE5.5 remotely, using the scheduler service to
begin the first batch.

Scott
"Ctrl Alt Delete" <ctrl_alt...@hotmail.com> wrote in message
news:vWHW8.202$QP6....@news010.worldonline.dk...

Alvin

unread,
Jul 10, 2002, 12:19:19 AM7/10/02
to
Hi,

You can split your batch file to two portion, one to install the
program and the other after the reboot. I have done this in NT, not
sure it still work in w2k.

Here how,
Create a ini/reg file as below (you can name the ini as any thing you
want and the path to your second batch);
\Registry\Machine\Software\Microsoft\Windows\CurrentVersion\Run
nextro = REG_SZ "c:\winnt\zak\your_second_batch.cmd"

In your first batch file, insert these registry by using any method
that you know (I use regini.exe). It will run the batch file and
delete the entry in the registry after reboot.

Regards
Alvin


"Ctrl Alt Delete" <ctrl_alt...@hotmail.com> wrote in message news:<vWHW8.202$QP6....@news010.worldonline.dk>...

zeke03

unread,
Jul 10, 2002, 6:50:18 AM7/10/02
to

you can use the ressource kit tools which allow you to create a service in which
one you can include a batch

INSTSRV.EXE and SRVANY.EXE

--
Use our news server 'news.foorum.com' from anywhere.
More details at: http://nnrpinfo.go.foorum.com/

Ctrl Alt Delete

unread,
Jul 10, 2002, 2:23:53 PM7/10/02
to
Thanks to all for the answers, I will work with it, glad to know it is
possible

--
Regards <Ctrl Alt Delete>
(Denmark)
----------------------------------------
Life is a batch, not a bitch

"Ctrl Alt Delete" <ctrl_alt...@hotmail.com> skrev i en meddelelse
news:vWHW8.202$QP6....@news010.worldonline.dk...

0 new messages