Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: DOS on Windows 98

DOS on Windows 98 4 years 8 months ago #37936

  • Arani
  • Arani's Avatar
  • Offline
  • Moderator
  • Posts: 745
  • Thank you received: 10
  • Karma: 4
Hi all

I'm trying to setup a batch file on a windows 98 machine which will log the date and time every time it restarts. However the 'time /t' doesn't work. Apparently the '/t' switch doesn't work on the flavour of DOS provided on Windows 98.

Any ideas how I can achieve this, as I'm trying to avoid the user prompt after the time command which asks for a new time.

Cheers
Picking pebbles on the shore of the networking ocean
The administrator has disabled public write access.

Re: DOS on Windows 98 4 years 8 months ago #37938

  • TheBishop
  • TheBishop's Avatar
  • Offline
  • Moderator
  • Posts: 1719
  • Thank you received: 8
  • Karma: 5
You can do it with pipes. Make a file that contains just a single <cr> and call it say Return.fil. Then you can pipe it into your time command using time < Return.fil. When the time command executes it will take its input from your file, in this case the <cr>, which will avoid you having to type it in.
If you want you can also pipe the output to a file as well by reversing the chevron: Time < Return.fil > Output.txt. This is useful if you don't want the output clutter in your screen or logfile but want to send it somewhere else to hide it
Have a mess with the above, it's a long time ago since I did this stuff but I think my memory's accurate
The administrator has disabled public write access.

Re: DOS on Windows 98 4 years 8 months ago #37939

  • Arani
  • Arani's Avatar
  • Offline
  • Moderator
  • Posts: 745
  • Thank you received: 10
  • Karma: 4
I'll give that a go mate. Let's see.

Cheers
Picking pebbles on the shore of the networking ocean
The administrator has disabled public write access.

Re: DOS on Windows 98 4 years 8 months ago #37940

  • S0lo
  • S0lo's Avatar
  • Offline
  • Moderator
  • Posts: 1577
  • Thank you received: 7
  • Karma: 3
Good call TheBishop :) That should work easily.
Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
The administrator has disabled public write access.
Time to create page: 0.076 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup