astaf Topic Starter
Posts: 3
Experience: Beginner OS: Unknown
|
 |
« on: February 07, 2012, 04:16:02 AM » |
|
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.
|
|
|
|
|
Squashman
Thanked: 13 Posts: 189
Experience: Experienced OS: Other

|
 |
« Reply #1 on: February 07, 2012, 06:14:39 AM » |
|
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.
|
|
|
|
|
Raven19528
Thanked: 27 Posts: 273
Computer: Specs Experience: Experienced OS: Windows 7

|
 |
« Reply #2 on: February 07, 2012, 04:25:18 PM » |
|
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?
|
"All things that are Are with more spirit chased than enjoy'd" -Shakespeare
|
|
|
astaf Topic Starter
Posts: 3
Experience: Beginner OS: Unknown
|
 |
« Reply #3 on: February 08, 2012, 03:18:34 AM » |
|
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?
|
|
|
|
|
patio Moderator
Thanked: 1023 Posts: 10,558
Experience: Beginner OS: Windows 7

Maud' Dib
|
 |
« Reply #4 on: February 08, 2012, 04:05:10 PM » |
|
Thanks to everyone for replies and the PMs. If you don't mind me asking...who are these PM's from ? ?
|
" All generalizations are false, including this one. "
|
|
|
|
|
|
|
Raven19528
Thanked: 27 Posts: 273
Computer: Specs Experience: Experienced OS: Windows 7

|
 |
« Reply #7 on: February 09, 2012, 11:38:19 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.
|
"All things that are Are with more spirit chased than enjoy'd" -Shakespeare
|
|
|
patio Moderator
Thanked: 1023 Posts: 10,558
Experience: Beginner OS: Windows 7

Maud' Dib
|
 |
« Reply #8 on: February 09, 2012, 05:31:47 PM » |
|
We all know who sends "support" via PMs.
I knew that and that's why i asked...
|
" All generalizations are false, including this one. "
|
|
|
Raven19528
Thanked: 27 Posts: 273
Computer: Specs Experience: Experienced OS: Windows 7

|
 |
« Reply #9 on: February 09, 2012, 06:32:49 PM » |
|
That was a quick delete.
|
"All things that are Are with more spirit chased than enjoy'd" -Shakespeare
|
|
|
patio Moderator
Thanked: 1023 Posts: 10,558
Experience: Beginner OS: Windows 7

Maud' Dib
|
 |
« Reply #10 on: February 09, 2012, 06:34:52 PM » |
|
That was a quick delete.
Thanx...
|
" All generalizations are false, including this one. "
|
|
|
astaf Topic Starter
Posts: 3
Experience: Beginner OS: Unknown
|
 |
« Reply #11 on: Today at 10:59:03 AM » |
|
@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.
|
|
|
|
|
|
|