Solved

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

Posted on 2007-03-22
4
1,663 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
ID: 18773290
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
ID: 18773358
No. It's a windows batch spool.
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 18773548
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
ID: 18777525
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

17 Experts available now in Live!

Get 1:1 Help Now