Re: Unwanted Paste behavior
- From: folderann <tantanna@xxxxxxx>
- Date: Fri, 02 Mar 2007 20:11:20 -0500
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.
.
- Follow-Ups:
- Re: Unwanted Paste behavior
- From: Herb Martin
- Re: Unwanted Paste behavior
- References:
- Unwanted Paste behavior
- From: folderann
- Re: Unwanted Paste behavior
- From: Herb Martin
- Unwanted Paste behavior
- Prev by Date: Re: Unwanted Paste behavior
- Next by Date: Re: DC Redundancy Not Working...?
- Previous by thread: Re: Unwanted Paste behavior
- Next by thread: Re: Unwanted Paste behavior
- Index(es):
Relevant Pages
|