Home / Microsoft / Microsoft DOS / Time Set Batch Files
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Time Set Batch Files  (Read 193 times)
astaf
Topic Starter
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.
IP logged
Squashman
Intermediate



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.
IP logged
Raven19528
Hopeful



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?
IP logged

"All things that are
Are with more spirit chased than enjoy'd" -Shakespeare
astaf
Topic Starter
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?
IP logged
patio
Moderator
Genius



Thanked: 1023
Posts: 10,558

Experience: Beginner
OS: Windows 7


Maud' Dib

« Reply #4 on: February 08, 2012, 04:05:10 PM »

Quote
Thanks to everyone for replies and the PMs.

If you don't mind me asking...who are these PM's from ? ?
IP logged

   
"
All generalizations are false, including this one.  "
Quantos
Guru



Thanked: 158
Posts: 4,041

Experience: Experienced
OS: Windows Vista


Union Proud IW 720

Iron Workers Local 720 1 1
« Reply #5 on: February 08, 2012, 04:19:46 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.
IP logged

"Ah the agony, ah the shame, making one man's privates - public for a game..."  Mel Brooks
Salmon Trout
Prodigy



Thanked: 501
Posts: 7,367

Computer: Specs
Experience: Guru
OS: Linux variant

1
« Reply #6 on: February 09, 2012, 11:09:57 AM »

We all know who sends "support" via PMs.
IP logged

Raven19528
Hopeful



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.
IP logged

"All things that are
Are with more spirit chased than enjoy'd" -Shakespeare
patio
Moderator
Genius



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...
IP logged

   
"
All generalizations are false, including this one.  "
Raven19528
Hopeful



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.
IP logged

"All things that are
Are with more spirit chased than enjoy'd" -Shakespeare
patio
Moderator
Genius



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...
IP logged

   
"
All generalizations are false, including this one.  "
astaf
Topic Starter
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.
IP logged
Salmon Trout
Prodigy



Thanked: 501
Posts: 7,367

Computer: Specs
Experience: Guru
OS: Linux variant

1
« Reply #12 on: Today at 11:06:08 AM »

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.
IP logged

Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Time Set Batch Files « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.099 seconds with 21 queries.