If time=N then .. in DosBox for Android?

In this forum you can write about anything that does not fit in other forums.
This includes generic Oric talkings and things that are totaly unrelated but want to share with people here :)
Brana
Flying Officer
Posts: 169
Joined: Fri Nov 30, 2007 8:30 pm
Contact:

If time=N then .. in DosBox for Android?

Post by Brana »

Is there a way for me to triger certain bat file execution according to a specific time of the day?
(Running DosBox for Android).
For example the syntax (something like this one):

If time /t = 13:35 then :load_something
If time /t = 14:35 then :load something_else

But i'm doing it somewhere wrong; it does not work.
Attachments
Screenshot_2017-11-23-17-09-54.png
User avatar
iss
Wing Commander
Posts: 1637
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: If time=N then .. in DosBox for Android?

Post by iss »

You have to use a temporary file to store the output string from the 'time /t' command, than load its content into a variable and then use the variable in IF expression. For more details take look HERE.
Brana
Flying Officer
Posts: 169
Joined: Fri Nov 30, 2007 8:30 pm
Contact:

Re: If time=N then .. in DosBox for Android?

Post by Brana »

First part works;

time /t › temp.txt

That really creates an Txt file Temp.txt whit the hh:mm contest of the file.

But the second part:

set /p var=‹temp.txt

All I got was:
Change enviorment variables

(as I typed for example: "set /?" )
Attachments
Screenshot_2017-11-25-00-41-53.png
Post Reply