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

re: Batch File Help?
Saturday, February 28, 2009 at 10:39 am
Windows 98 Annoyances Discussion Forum
Posted by Robert Blanda (4 messages posted)


Actually, a nice person on another board wrote me a batch file. Goes like this: 

@Echo Off & Setlocal enableextensions enabledelayedexpansion

set _H1=N
set _H2=N
FOR /F "tokens=1 delims=:" %%A IN ('echo %time%') DO (
   echo %%A
   if %%A GEQ 11 set _H1=Y
   echo !_H1!
   if %%A LSS 15 set _H2=Y
   echo !_H2!  
   if [!_H1!!_H2!] == [YY] (
     start "" "C:\Documents and Settings\rblanda\Desktop\lunch\lunch.pps"
   ) ELSE (
     start "" "C:\Documents and Settings\rblanda\Desktop\dinner\dinner.pps"
   ))



Written in response to:
re: Batch File Help? (Bill: Friday, February 27, 2009 at 2:36 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.