What is the close_down.exe?

I

Ingeborg

Adrian wrote:

> Ingeborg, when you said "Run a batch file on the W98 box", did you
> mean to say, put a reference to the batch-file in thautoexec.bat of
> the W98 box, so it will sort of keep on running in the background?


Sort of. Not in autoexec.bat. Autoexec.bat is parsed before windows will
start, so putting a never ending script here will prevent Windows from
starting.

You can put it in the Startup folder from the startmenu:

1. Right-Click on Start and choose Open.
2. Double-click Programs.
3. Double-click StartUp and add a shortcut for any program you want to load
automatically.

The program will be launched when explorer is loaded. (BTW, you can bypass
this by keeping <shift> pushed while windows is starting. Can be nice when
some startup entry causes windows to crash, or, more likely in your case,
causes windows to shutdown immediately.
 
A

Adrian

Ingeborg,

I don't know what happened yesterday when I tried your code. Had it in a
couple of minutes today. Many apologies. Oh man. Adrian.
 
A

Adrian

Ingeborg, There is nothing about keyboards in the BIOS, it only detects hdd
and display as far as I can see. I wrote a simple compiled QBasic program
for the other boxes to put a text-file in "Share". (QBasic can be very
convenient for basic requirements.) Nice stuff! Creates lots of room on my
desk! Thank you again. Adrian.
 
A

Adrian

"Ingeborg" <a@b.invalid> wrote in message
news:Xns99A4613302B27abinvalid@194.109.133.133...
<snipped>
> Who is talking about need? It should be fun. I have an old PC running W95
> without screen or keyboard in the basement. You can switch it on by
> WakeOnLan, and I wrote a little program for it that pings a number of IP
> addresses, and it shuts itself down when it feels alone. (One pitfall, I
> had to turn off the 'Automatic daylight saving'. It will twice a year show
> a messagebox that it changed the time, and I had to connect a monitor and
> keyboard just to get that silly box away.)


Re the above: I have activated Wake Up in BIOS: should that allow powering
up W98 when it is down (when approached via the network on which it is
located): it doesn't. Is it at all possible to make the W98 power-up via the
network on which it resides? And if so, how should that be done from another
box on that network?

Many thanks,
Adrian
 
I

Ingeborg

Adrian wrote:

>
> "Ingeborg" <a@b.invalid> wrote in message
> news:Xns99A4613302B27abinvalid@194.109.133.133...
> <snipped>
>> Who is talking about need? It should be fun. I have an old PC running
>> W95 without screen or keyboard in the basement. You can switch it on
>> by WakeOnLan, and I wrote a little program for it that pings a number
>> of IP addresses, and it shuts itself down when it feels alone. (One
>> pitfall, I had to turn off the 'Automatic daylight saving'. It will
>> twice a year show a messagebox that it changed the time, and I had to
>> connect a monitor and keyboard just to get that silly box away.)

>
> Re the above: I have activated Wake Up in BIOS: should that allow
> powering up W98 when it is down (when approached via the network on
> which it is located): it doesn't. Is it at all possible to make the
> W98 power-up via the network on which it resides? And if so, how
> should that be done from another box on that network?
>


I hope you mean WakeOnLan. It's a sevice supported by the BIOS, and both
the motherboard and the NIC have to support it. In case of a seperate NIC
a 2 wire line has to be connected between NIC and Mobo. See your mobo
manual for details.

To wake up a computer, you need a special program, which sends a special
packet to the MAC address of the NIC. (Not to the IP address, since
TCP/IP is a high level protocol, not provided by the BIOS). You can find
lots of freeware programs for this. One of them:
<http://gammadyne.com/cmdline.htm#wol>


A note to your QBasic program:
Did you realize that you should write the file before naming it? When
your program does basically this:

Create command.bat
WriteTo command.bat
Close command.bat

it is possible that Win98Stop tries to execute the batch file between
Create and WriteTo. What happens then is dependend of how QBasic opens
the file, especially the sharing parameters. The safe way would be:

Create command.tmp
WriteTo command.tmp
Close command.tmp
Rename command.tmp command.bat
 
A

Adrian

"Ingeborg" <a@b.invalid> wrote in message
news:Xns99A579E57969Aabinvalid@207.46.248.16...
> Adrian wrote:
>>
>> "Ingeborg" <a@b.invalid> wrote in message
>> news:Xns99A4613302B27abinvalid@194.109.133.133...
>> <snipped>

> I hope you mean WakeOnLan. It's a sevice supported by the BIOS, and both
> the motherboard and the NIC have to support it. In case of a seperate NIC
> a 2 wire line has to be connected between NIC and Mobo. See your mobo
> manual for details.
>
> To wake up a computer, you need a special program, which sends a special
> packet to the MAC address of the NIC. (Not to the IP address, since
> TCP/IP is a high level protocol, not provided by the BIOS). You can find
> lots of freeware programs for this. One of them:
> <http://gammadyne.com/cmdline.htm#wol>
>
>
> A note to your QBasic program:
> Did you realize that you should write the file before naming it? When
> your program does basically this:
>
> Create command.bat
> WriteTo command.bat
> Close command.bat
>
> it is possible that Win98Stop tries to execute the batch file between
> Create and WriteTo. What happens then is dependend of how QBasic opens
> the file, especially the sharing parameters. The safe way would be:
>
> Create command.tmp
> WriteTo command.tmp
> Close command.tmp
> Rename command.tmp command.bat

-----

Re the first paragraph (thank you for it): I will have to find out what the
acronyms mean and proceed from there.

-----
As to the bat-file and Qbasic code:

(Re your suggestions:) My bat-file contains:

:Again
if exist C:\Share\Stop.txt goto Execute

rem Wait for 10 seconds
ping -n 10 127.0.0.2 > nul
goto Again

:Execute
del C:\Share\Stop.txt
rundll32 krnl386.exe,exitkernel
goto Again

My Qbasic .exe simply creates a text-file. The setup (bat-file + Qbasic
..exe) works alright. I am delighted with it.
-----
I am currently in the process of finding out the spec for a big hard drive
the W98 box will take (q.v. my post).

Regards,
Adrian.
 
Back
Top Bottom