Script to toggle the names of two XML files
I ne开发者_运维问答ed to write a script so that I can toggle between two XML files say A.xml and B.xml .On running the script the name of the XML files should change means A becomes B and B becomes A. Please suggest how to do this on windows machine?
Suggestion: Rename both files.
Obvious solution:
ren a.xml temp.xml
ren b.xml a.xml
ren temp.xml b.xml
Of course, that doesn't save you from races with other processes but I guess if you need to worry about that you wouldn't be asking this question in the way you have ...
精彩评论