Solved

Batch file:  How to 'append' to a output file on a 'spool' command

Posted on 2007-03-22
4
1,655 Views
Last Modified: 2012-05-05
I have this line.  I need it to 'append' to 'Step_1.txt' instead of overwriting it.  Can it  be done?

spool on to 'F:/EssbaseBackupLogs/Step_1.txt';
0
Comment
Question by:elwayisgod
  • 2
4 Comments
 
LVL 30

Expert Comment

by:SteveGTR
Comment Utility
Is this the Oracle SQL spool command? If so, it looks like there is an APPEND option:

SPO[OL] [file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]] | OFF | OUT]
0
 

Author Comment

by:elwayisgod
Comment Utility
No. It's a windows batch spool.
0
 
LVL 30

Expert Comment

by:SteveGTR
Comment Utility
spool.exe? I don't have it on my XP/Pro machine. I have spoolsv.exe.
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 50 total points
Comment Utility
I'm not sure what you are talking about in terms of spool - but you can redirect output using > and >> -

command>OutputFileName.txt = redirect standard output, overwriting existing file
command>>OutputFileName.txt = redirect standard output, APPENDING to the existing file
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now