Re: Unwanted Paste behavior



On Sat, 3 Mar 2007 03:37:53 -0600, "Herb Martin" <news@xxxxxxxxxxxxxx>
wrote:


"George Valkov" <a@xxxxx> wrote in message
news:OfPG63WXHHA.4772@xxxxxxxxxxxxxxxxxxxxxxx

"Herb Martin" wrote:
|
| "folderann" wrote:
| > 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.
|
| Sure, been there, needed that, too.
|
| If you figure out how to get "@echo something >f.txt" to leave off the
| terminating CR/LF let me know. I think there is a way but cannot
| recall it.

It takes more time to create a JScript for console than a bat script, but
You have much more control and I believe that JS runs faster.

Usually if I leave Bat/CMD I go to Perl since it is so much easier than
other languages for practically anything you wish to do as a SysAdmin
or at the command prompt.

All of our machnes have Perl, but it is nice to be able to do most
"small things" from straight batch.

I might try a vbscript, I dunno. Sometimes I spend hours being
"elegant" and writing something that saves me 20 seconds for each
instance. What's odd is that Echo. will write a blank. If I find
something I'll post it. And VBS is supported in most Windows.
.



Relevant Pages

  • Re: Unwanted Paste behavior
    ... It was staring ... But the app ... Usually if I leave Bat/CMD I go to Perl since it is so much easier than ... or at the command prompt. ...
    (microsoft.public.windows.server.general)
  • Re: [SLE] Bat files in Linux
    ... > I have a few commands that I would like to run at the command prompt. ... In perl, your script would probably look something like this (quick hack, not ... > ECHO Backup Menu ... > ECHO A. Flash Drive Backup J: ...
    (SuSE)
  • Annoying Problem with a Basic Perl app and XP Pro
    ... New to perl, ... I wanted a simple and efficeint app ... sub main_transfer { ... I've looked through the lists, but this issue hasn't shown up... ...
    (comp.lang.perl.misc)
  • Re: Reading Output from Shell Command
    ... I don't know anything about Perl. ... string comes from the output, say about in 1/2 hour, then you might have to ... > my main app, let me tell you a bit about what the app does, and see if you ... > think switching to a redirect and streamreader is the way to go. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Read Only flag is set on all folders on all drives.
    ... or command prompt is set to open at a default location ... (Quickbook is the *only* app that still checks RO on a directory AFAICR) ... >>> that all folders on all drives have the read only flag ...
    (microsoft.public.windows.file_system)