Computing.Net > Forums > Programming > Im stuck,pls help.. batch coding

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Im stuck,pls help.. batch coding

Reply to Message Icon

Original Message
Name: shr00m
Date: January 19, 2005 at 10:51:54 Pacific
Subject: Im stuck,pls help.. batch coding
OS: Windows Xp Pro
CPU/Ram: Amd 64 3200, 1Gb
Comment:

I have a main batch prog running. Its supposed to echo something to another file, which works well until i come to this line:

echo echo File %file% doesnt exist >> error.log >>list.bat

I want list.bat to contain:
echo File %file% doesnt exist>>error.log

Now, i get that its not possible to use >> 2times, as only the last one will work.

So, what other way can this be done?
Ive tried sending this to list.bat:

"File %file% doesnt exist >> error.log"

and then removing the quotes with parsing, but that didnt work very well. It leaves out >>error.log whatever i try..
Hope anyone have any tips:)


Report Offensive Message For Removal


Response Number 1
Name: dtech10
Date: January 19, 2005 at 14:43:19 Pacific
Reply: (edit)

Hi
Put clarets I think there called before each >
------------
echo echo File %file% doesnt exist ^>^> error.log >>list.bat



Report Offensive Follow Up For Removal

Response Number 2
Name: shr00m
Date: January 20, 2005 at 11:07:11 Pacific
Reply: (edit)

Ahh.. Works perfectly! Thnx alot:)


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software