Re: Unwanted Paste behavior



On Fri, 2 Mar 2007 17:43:38 -0600, "Herb Martin" <news@xxxxxxxxxxxxxx>
wrote:


"folderann" <tantanna@xxxxxxx> wrote in message
news:djbhu216b4tcidp46sd234tsl93vha32n6@xxxxxxxxxx
I wrote a small application that copy text from a text file to
clipboard which I paste into a windowsXP cmd.exe window or a unix
korn shell window.
For example: I might paste the text "mybat.cmd " onto the command line
and them append (by paste) another argument and then hit ENTER.

The problem is that, recently, any text that has executable properties
that I paste onto the command line, executes right after I paste it in
WITHOUT MY HITTING ENTER and of course before I can append the
argument.

Does any one know what's going on here and what I can do about it?

Check your application to ensure it doesn't include a terminating Enter
(CR and/or LF).

Copying text without the enter key and pasting it works correctly at the
command prompt for all other applications. If you include the line ending
character(s) then the command completes, otherwise it waits.

Your app is responsible.

You're right. It's not the OS or some weird switch. It was staring
me in the face.

Actually the app reads the entire file, however small. But the app
doesn't place the text in the file(s). It just reads it. It's the
way the text is put into the text file that is causing the line feed
or CR. Usually I would open the file,type it in, and close it. But
as a quick pre-run deal, lately I was echo(ing) the command text into
the text file. That creates the CR. Garbage in/out. That's what I get
being too smart to know I can be a big dope.

Thanks so much for getting me to take a better look.
.



Relevant Pages

  • Re: Great SWT Program
    ... mostly solve the blind-typing problem that I definitely recall emacs ... Except of course that you need to know some arcane command language ... Hitting tab should insert a tab ... one-line "window" in which the rest of what I type appears, ...
    (comp.lang.java.programmer)
  • Re: Printer Control and Print/Preview Problems
    ... to be appended to the report print stream. ... or "Print" with the DoCmd.OpenReport command, ... still open preview window. ... > following that with an OpenReport using acNormal. ...
    (microsoft.public.access.reports)
  • Re: Dim RetVal
    ... "Jay Freedman" wrote in message ... The reason is that without the quotes, the command processor sees the ... In the command window, first type ... This *should* have exactly the same effect as the macro. ...
    (microsoft.public.word.vba.beginners)
  • Re: playtime for spare PCs -Jeff Gaines.
    ... The Black Window is the "Command Prompt Window" & that wouldn't have ... The Window Opens up & Flashes up ... I would expect there to be 2 User Accounts (on a WinXP ...
    (uk.people.silversurfers)
  • Re: Failed running .bat file from WinXP Explorer
    ... If you use>> anything to the right will be echoed in the command prompt. ... typed in a Command or Run window. ... What does PATHEXT show? ... System environment variables are in the following Registry key: ...
    (microsoft.public.windowsxp.general)