Re: Re: how to add <Enter> on a new line in a .bat file

From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 06/03/04


Date: Thu, 03 Jun 2004 08:21:26 -0400

On Wed, 2 Jun 2004 17:53:24 -0500, "JW" <JustPostYourReply@ToTheNewsGroup.pls>
wrote:

>P.S. forgot to mention that I'm obviously new in this newsgroup.
>This newbie would greatly appreciate any tidbits of advice.
>
>
>"JW" <JustPostYourReply@ToTheNewsGroup.pls> wrote in message
>news:uOA2XjOSEHA.3596@tk2msftngp13.phx.gbl...
>How can I add a line in a .bat file, that will send the <Enter> key ? Hope
>this is not a dumb question. I tried pressing Enter on a blank line in the
>.bat file, but as I imagined, it behaved like a line with nothing on it.
>What I'm trying to do is use the Startup folder to automatically Synchronize
>an Active Desktop item, by running a .bat file that runs Mobsync.exe,
>followed by sending an <Enter> keystroke. Sending the Alt+S keystroke
>combination would also achieve the desire effect.
>
>I also tried and failed to locate any Help for Mobsync, that would show me a
>parameter to achieve the same desired effect. I already know an
>alternative. I can go out, and download a keystroke recorder program, which
>I will eventually do anyway for more complex macros. But if at all
>possible, I would like to learn how to do it in a .bat file. Sometimes,
>Quick and Dirty is simpler. Thanks for your help.
>
>I came here from the XP Basics newsgroup, where the response was a VBscript
>program. Problem with that is, when I want to do something similar again
>someday, I don't want to go asking somebody to write me another VBscript
>program.
>
>
See tip 2531 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com



Relevant Pages

  • Re: VBScript Windows 7 / Windows Vista
    ... I ended up reducing the script to just the following ... Dim objShell ... I did make some modifications to your BAT file, ... like to know why the VBScript failed. ...
    (microsoft.public.scripting.vbscript)
  • RE: how to add <Enter> on a new line in a .bat file
    ... The Alt-S is out of the question in a batch procedure. ... ..bat file, but as I imagined, it behaved like a line with nothing on it. ... combination would also achieve the desire effect. ... I came here from the XP Basics newsgroup, where the response was a VBscript ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Loginscript (VBScript)
    ... Isolved creating a .bat file. ... I made a vbscript to copy a file to users desktop, ... Where did you specify the script? ... The computer configuration scripts however run in the SYSTEM's context ...
    (microsoft.public.windows.group_policy)
  • Re: Schedule + VBScipt
    ... Oh and to be more specific - The bat file copy's files up to a personal ... I want to use the vbscript to do is schedule a task on the specific machine ... It's basically a backup restore bat file ...
    (microsoft.public.scripting.vbscript)
  • how to add <Enter> on a new line in a .bat file
    ... How can I add a line in a .bat file, that will send the key? ... followed by sending an keystroke. ... combination would also achieve the desire effect. ... I came here from the XP Basics newsgroup, where the response was a VBscript ...
    (microsoft.public.win2000.cmdprompt.admin)

Loading