|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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? |
| |||
| 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? > > |
| |||
| 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? > > |
| |||
| 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. |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |