1.

Solve : Time Set Batch Files?

Answer»

Hello everyone,

I am a windows XP user actually, but in the time of dos games i had a dos computer so i know a little about the dos commands and whatnot. However what i want to ask today exceeds my knowledge. Let me explain it.

Well, i want to learn if i can write a batch file that will be processed at a specified time and date on dos 6.22. There is a dos software that i use and i want that software to realize some commands at a specified time without manual intervention. And basically those commands are given by pressing simple keys like letters and numbers. So i thought that running a batch file in the background can do the same. Is it possible to write such a batch file and put it into action?

Thanks in advance to everyone.batch files cannot simulate pressing keys on the keyboard.  I don't believe you can pull off the task scheduling either unless you have a batch file that sits there and runs by itself and keeps checking the time.
If you were running it on XP and had access to VBScript, you could easily test for a time condition and have it use the SENDKEYS FUNCTION to simulate pressing certain keys.

Would seeing the VBScript help you, or are you strictly looking to do this in batch?Thanks to everyone for replies and the PMs.

First i want to clarify that this operation needs to be done on a ms-dos 6.22 running computer. Not on a xp installed computer, but again ms-dos 6.22 installed computer. So, at command isn't recognized on ms-dos 6.22. Because when i write this;

C:\>at /?
Bad command or file name

C:\>

I get this.

Squashman, is it because when a line only contains the "y" caracter, what actually that does is to press y key and then the enter? Is this why it can't simulate?

Raven19528 Do you THINK a similar method can be applied on MS-DOS 6.22? Quote

Thanks to everyone for replies and the PMs.

If you don't mind me asking...who are these PM's from ? ? Quote from: patio on February 08, 2012, 04:05:10 PM
If you don't mind me asking...who are these PM's from ? ?
Yes, indeed.  Support is supposed to be limited to the forums or the chat service.  Support is NOT supposed to be provided in PM's.We all know who sends "support" via PMs.
Quote from: astaf on February 08, 2012, 03:18:34 AM
Raven19528 Do you think a similar method can be applied on MS-DOS 6.22?

I am not familiar with MS-DOS 6.22, but from what I do know about DOS, I doubt it. I have learned a great deal about cmd line batch filing, but I am by no means an expert in the DOS realm. At this point, I think it best that I let someone who knows a lot more about your specifics take a crack at it. Quote from: Salmon Trout on February 09, 2012, 11:09:57 AM
We all know who sends "support" via PMs.

I knew that and that's why i asked...That was a quick delete. Quote from: Raven19528 on February 09, 2012, 06:32:49 PM
That was a quick delete.

THANX...raven19528 I think it's not possible or requires much experience to do it, since i can't get a solution in this well-equipped forum.I am fairly sure that in MS-DOS 6.22, which is a single-tasking OS, you can't make one app press keys while another app is running.
That's reasonable considering that you say it is a single-tasking OS. Thanks.I do a LOT of processing in DOS. I write short EXE programs to do most anything I want. I use RPG. It is quick easy, and makes comact programs. Usually 25-100k. I also use quite a few batch files. If you want to do it at the same time every day, there is a dos comand 'waitfor xx:xx. If you want to do it on certain days, there is a command that checks the day of the week. It is 'datechek' It will return an errorlevel 0-6 for Sunday-Saturday. I think these commands work on all vesions of DOS

Hope this HELPS.


Discussion

No Comment Found