how to insert <Enter> in .bat file

From: JW (JustPostYourReply_at_ToTheNewsGroup.pls)
Date: 06/02/04


Date: Wed, 2 Jun 2004 14:35:25 -0500

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.

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.



Relevant Pages

  • Re: how to insert <Enter> in .bat file
    ... > 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 ... Gordo ...
    (microsoft.public.windowsxp.basics)
  • Re: Re: how to add <Enter> on a new line in a .bat file
    ... >.bat file, but as I imagined, it behaved like a line with nothing on it. ... >combination would also achieve the desire effect. ... I can go out, and download a keystroke recorder program, which ... >I came here from the XP Basics newsgroup, where the response was a VBscript ...
    (microsoft.public.win2000.cmdprompt.admin)