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 :)
Post Reply
Brana
Flying Officer
Posts: 152
Joined: Fri Nov 30, 2007 8:30 pm
Contact:

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

Post by Brana » Thu Nov 23, 2017 10:09 pm

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
Squad Leader
Posts: 515
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

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

Post by iss » Thu Nov 23, 2017 10:59 pm

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: 152
Joined: Fri Nov 30, 2007 8:30 pm
Contact:

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

Post by Brana » Sat Nov 25, 2017 12:47 am

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

Who is online

Users browsing this forum: No registered users and 6 guests