Batch exporting problems
|
Original Message
|
Name: hobblyhoy
Date: July 2, 2007 at 19:07:47 Pacific
Subject: Batch exporting problemsOS: winxpCPU/Ram: 512Model/Manufacturer: hp |
Comment: I have file A.bat: echo %%y > test.txt however after it is ran test.txt contains only "%y" Why does it keep omiting my second percent sign? and more importantly how do I stop it? "the right to swing my arm ends where your nose begins." -Claude Adrien Helvetius
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Mechanix2Go
Date: July 3, 2007 at 03:50:11 Pacific
|
Reply: (edit)Within a bat, one % is always 'stripped'. What are you trying to do? ===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: IVO
Date: July 3, 2007 at 06:18:03 Pacific
|
Reply: (edit)Echo %%%%y > test.txt i.e. you have to double each % symbol as M2 pointed out. Better however you explain what you are trying to achieve to avoid waste of time and misunderstanding.
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: hobblyhoy
Date: July 3, 2007 at 12:30:33 Pacific
|
Reply: (edit)ahh, wow, I feel stupid. instead of thinking 2 to 1, I was thinking subtract one, so I tried: echo %%%y > test.txt and it did the same thing, I assumed it would continue in this fasion. But it doesnt. Thank you Ivo! "the right to swing my arm ends where your nose begins." -Claude Adrien Helvetius
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: