Search found 1 match
- 28 Apr 2011 20:23
- Forum: DOS Batch Forum
- Topic: How to extract characters from a string
- Replies: 1
- Views: 3521
How to extract characters from a string
Below is a sample dos batch file. I managed to compute the starting position (posn) to extract the character. But the set command unable to extract the characters form the string. Can a variable (%posn%) be used in the set Command? set today=%date% set mth=%today:~4,2% set mths=janfebmaraprmayjunjul...