Suppose I have a string "AAA BBB CCC DDD EEE FFF".
How can I split the string and retrieve the nth substring, in a batch file?
The equivalent in C# would be
"AAA BBB CCC DDD EEE FFF".Split()[n]
EDIT
Thanks for the helpful answers. In the end I decided that this was trying to make a batchfile perform unnatural acts, so I went with powershell.