Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-07-2007, 06:00 PM
Stephen Rainey
Newsgroup Contributor
 
Posts: n/a
Save batch window msgs to a file from the batch prog

Hi, not sure if this is the correct forum.
I am running batch backups on my XP SP2 system.
From the batch file, I want to select all msgs in the window, and copy them
to a file for archive purposes.
Simple to do manually. Any suggestions how to automate this task from the
running batch file?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-07-2007, 06:00 PM
  #2 (permalink)  
Old 01-07-2007, 06:15 PM
Bill James
Newsgroup Contributor
 
Posts: n/a
Re: Save batch window msgs to a file from the batch prog

Most command you can redirect to a file using the > and >> characters. > replaces current content, >> appends to the file.

ping google.com > c:\ping.txt
ping yahoo.com >> c:\ping.txt

--

Bill James


"Stephen Rainey" <stephenrainey********.com> wrote in message news:OUAc6bsMHHA.3312@TK2MSFTNGP03.phx.gbl...
> Hi, not sure if this is the correct forum.
> I am running batch backups on my XP SP2 system.
> From the batch file, I want to select all msgs in the window, and copy them
> to a file for archive purposes.
> Simple to do manually. Any suggestions how to automate this task from the
> running batch file?
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 01-07-2007, 06:45 PM
Stephen Rainey
Newsgroup Contributor
 
Posts: n/a
Re: Save batch window msgs to a file from the batch prog

Thanks Bill, however, I am already making extensive use of output
redirection. I find that XCOPY will send certain information to the
"console" irrespective of the redirection.

I guess I am looking for a way to "select all", "save" to "filename", from
within the window.

"Bill James" <wgjames@mvps.org> wrote in message
news:uB%23SCisMHHA.5012@TK2MSFTNGP02.phx.gbl...
Most command you can redirect to a file using the > and >> characters. >
replaces current content, >> appends to the file.

ping google.com > c:\ping.txt
ping yahoo.com >> c:\ping.txt

--

Bill James


"Stephen Rainey" <stephenrainey********.com> wrote in message
news:OUAc6bsMHHA.3312@TK2MSFTNGP03.phx.gbl...
> Hi, not sure if this is the correct forum.
> I am running batch backups on my XP SP2 system.
> From the batch file, I want to select all msgs in the window, and copy
> them
> to a file for archive purposes.
> Simple to do manually. Any suggestions how to automate this task from the
> running batch file?
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 01-09-2007, 06:15 PM
Paul Johnson
Newsgroup Contributor
 
Posts: n/a
Re: Save batch window msgs to a file from the batch prog

Stephen Rainey wrote:

> Thanks Bill, however, I am already making extensive use of output
> redirection. I find that XCOPY will send certain information to the
> "console" irrespective of the redirection.


Unfortunately, DOS and it's successors never really got pipes or redirection
right, and it doesn't work as expected with all programs, even if they did
come from Microsoft. Windows redirection and pipe shortcomings are
eliminated on windows if you work from a Cygwin Bash prompt instead of a
Microsoft cmd prompt. http://www.cygwin.com/

> I guess I am looking for a way to "select all", "save" to "filename", from
> within the window.


Redirection is how you do exactly that. I bet if you try the same thing in
Cygwin Bash with cp instead of xcopy, you can make it do exactly what
you're trying to do successfully.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it feasible to upload a batch of files and save time? Ms. Fanny Microsoft OneNote 4 06-06-2008 08:10 AM
calling multiple batch files from within a batch file yawnmoth Windows XP 3 05-26-2008 10:50 AM
Batch file help Tome Windows XP 2 03-26-2008 04:40 AM
Batch file works in command line but not as a batch Danger Windows XP 7 02-05-2008 09:00 AM
Batch file - specify which cookies to save and delete all others Bob Windows Vista 0 02-05-2008 08:11 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 04:03 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0