| 1. |
Solve : how to change xls files that have specific seequens of caracters with batch file? |
|
Answer» hello, i work with hebrew caracture so fisrt come the subject then the name of the city When you ask for free help, you really should give accurate details about the task. I don't know how cmd handles Hebrew characters.I think what I would do is make a file with a list of the city names. One city per LINE. Use a for loop to parse that list and match that to the files in your directory and do a rename of the files. But then what are we supposed to do if you have two files with the same city name within a LARGER file name?its not possible to have two files with the city name in the same folder. foxdirve im new in this forum, will try to be more accurate in my questions. [recovering disk space, attachment deleted by admin]You are using Unicode formatting in the text file and unicode characters can be a huge problem for batch. Or at least I am totally unfamiliar with good ways to handle them. The last time I dealt with some unicode I had to resort to a VBS script. It will be interesting to see if anyone has some ideas...Quote from: foxidrive on March 16, 2014, 03:10:09 AM You are using Unicode formatting in the text file and unicode characters can be a huge problem for batch. Or at least I am totally unfamiliar with good ways to handle them. I ran a quick test, and I'm relatively sure you will have to resort to VB script. Code: (cmd) [Select]T:\>type cities.txt ?????? ????? ?????? ??? ??? ???? ????? ???? ????? ??? ?????? ??? ???? ???? ??? ????? ????? ????? ??? ?? T:\>type cities.txt >end.txt T:\>notepad end.txt T:\> Code: (end.txt) [Select]?????? ????? ?????? ??? ??? ???? ????? ???? ????? ??? ?????? ??? ???? ???? ??? ????? ????? ????? ??? ?? |
|