Annoyances.org
Home » Windows 98 Discussion Forum » Message 1235698386 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re: Batch File Help?
Thursday, February 26, 2009 at 5:33 pm
Windows 98 Annoyances Discussion Forum
Posted by gewg_ (3932 messages posted)


MartinM wrote:
You can get pretty creative with DOS's limited command set.

For instance, on boot run a batch file that deletes a file [nnn] if it exists
(use the IF EXIST command).

Then use the AT command to create file [nnn] at your crossover time.

Finally schedule a batch file to run at say 5 minute intervals
and use the IF EXIST command again to interrogate the existence of the file [nnn]
to determine your time-related course of action.

I hope this makes sense (its perfectly clear to ME !!).
I'm sure you can improve on what I cobbled together,
and [it's] instructive to get your own ingenuity going :-)

Nice try--but no cigar.
AT is *not* part of the DOS7 (Win98) command set. 
cache of http://www.computerhope.com/at.htm

There is an add-on utility out there 
cache of http://www.downloadthat.com/programs/At/Command
--but that doesn't support W98 either.

I think 4DOS includes an AT command
but since JP has made that freeware and stopped supporting it,
I'm not finding a listing for the command set.

To use 4DOS to replace COMMAND.COM,
you use the SHELL command in CONFIG.SYS.
http://www.google.com/search?q=SHELL-4DOS.COM+OR+SHELL-C-4DOS.COM

Your solution also requires creating TEMP files.[1]
This is getting to be even more hoops to jump thru
than would be constructing a compact, purpose-built app
and compiling it once with a freeware tool.
A compiled file would be MUCH more portable/maintainable than trying to use DOS
I do believe.

...and to Martin and the OP:  Scheduled Tasks is one of the first things I disabled.
Those who ever looked at what a resource hog is,
want to get rid of that PoS real quick.

There *are* other (freeware) options:
http://www.google.com/search?q=Cron-for-Windows-*


[1] Not a great idea with an OS that uses a filesystem which requires defragging.
cache of http://www.whylinuxisbetter.net/items/defragment/index.php




Written in response to:
re: Batch File Help? (MartinM: Wednesday, February 25, 2009 at 3:00 pm)

There are presently no replies to this message.

All messages in this thread [show all]
-Batch File Help? (Robert Blanda: Sat, Feb 21, 2009, 9:25 am)
-Branching in a Batch File based on the Real-Time Clock? (gewg_: Sat, Feb 21, 2009, 11:39 am)
-re: Branching in a Batch File based on the Real-Time Clock? (Robert Blanda: Sat, Feb 21, 2009, 12:46 pm)
*re: Branching in a Batch File based on the Real-Time Clock? (gewg_: Sat, Feb 21, 2009, 2:50 pm)
-re: Batch File Help? (MartinM: Wed, Feb 25, 2009, 3:00 pm)
*re: Batch File Help? (gewg_: Thu, Feb 26, 2009, 5:33 pm)
-re: Batch File Help? (Bill: Fri, Feb 27, 2009, 2:36 pm)
*re: Batch File Help? (Robert Blanda: Sat, Feb 28, 2009, 10:39 am)
Return to the Windows 98 Discussion Forum


All content at Annoyances.org is Copyright © 1995-2009 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.