Forgot to add the delete command at the end of the batch file. Obviously,
you would want the vbs deleted if the bat method is necessary.
So just add

DEL CTRLA.VBS

to the end of the batch file before cls.

vic

Lock and hide folders with maximum ease and security.
http://personal-computer-tutor.com/lh/lockhide.htm
----- Original Message -----
From: "vic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 21, 2002 10:40 AM
Subject: Re: PCWorks: How to enter keystrokes in a batch file?


> I use vbs to do this, the send keys command.
> You can either use a straight vbs file or incorporate it into bat file.
>
> VBS
> set sh=WScript.CreateObject("WScript.Shell")
> sh.SendKeys "^(a)"
>
> BAT
>
> @echo off
> ECHO.set sh=WScript.CreateObject("WScript.Shell")>Ctrla.vbs
> ECHO.sh.SendKeys "^(a)">>Ctrla.vbs
> start ctrla.vbs
> cls
>
> hth
> http://groups.yahoo.com/group/WinTips-Tricks/
> vic
> ----- Original Message -----
> From: "OrpheusComputing.com" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 21, 2002 9:27 AM
> Subject: PCWorks: How to enter keystrokes in a batch file?
>
>
> > Group, can anyone tell me please how to enter keystrokes or
> > simulate keystrokes in a batch file?  (In this case, I need
> > to have [ctrl] and [a] pressed at the same time, then
> > released).
> > Thanks,
> > -Clint
> >
> > God Bless Us All
> > Clint Hamilton, Owner
> > http://OrpheusComputing.com �
============= PCWorks Mailing List =================
Don't see your post? Check our posting guidelines &
make sure you've followed proper posting procedures,
http://pcworkers.com/rules.htm
Contact list owner <[EMAIL PROTECTED]>
Unsubscribing and other changes: http://pcworkers.com
=====================================================

Reply via email to