So I want a program like this:
Enter number:
5
Giving first 5 characters of string "apple pie"...
apple
I have tried something like this
set characters=5
set "string=apple pie"
set string=%string:~0, %characters%%
But it's not working, any idea why?