It is currently Sat Aug 18, 2018 7:07 am

All times are UTC - 5 hours [ DST ]


Register for Windows Forums


New posts Register

Register for Windows Forums now to gain access to: post messages, download free books, competitions for great prizes, and get to know others. Members also see NO ADVERTS. Join today!




Message Author
 
 Post subject: capturing a batch file's commands to a text file - Ignore  Topic is solved
New postPosted: Wed Aug 18, 2010 7:42 am 

how do I capture a batch file's commands to a text file ?

> log.txt or >> log.txt doesn't work for me

edit the answer

add this to the last line in the batch file

BackupBatch.bat > log.txt


Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar
Frequent Member
Frequent Member

Joined: Sun Dec 06, 2009 2:39 pm
Posts: 38
Thanks given: 1 times
Thanks received: 3 times
OS: Vista Starter
 Profile  
 
Offline
 
 Post subject: Re: capturing a batch file's commands to a text file
New postPosted: Wed Aug 18, 2010 8:37 am 

>log.txt (no spaces.)



_________________
Image
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar
Site Admin
Site Admin
Windows Guru²
Windows Guru²

Joined: Sun Mar 02, 2008 8:33 pm
Posts: 2813
Thanks given: 424 times
Thanks received: 213 times
OS: 8 Pro
 Profile E-mail  
 
Offline
 
 Post subject: Re: capturing a batch file's commands to a text file - Ignore
New postPosted: Wed Aug 18, 2010 8:51 am 

thanks

but it works even with the space in WinXP Pro SP3

am I missing anything ?


Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar
Frequent Member
Frequent Member

Joined: Sun Dec 06, 2009 2:39 pm
Posts: 38
Thanks given: 1 times
Thanks received: 3 times
OS: Vista Starter
 Profile  
 
Offline
Display posts from previous:  Sort by  

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

cron