Search found 3 matches
- 30 Mar 2021 13:02
- Forum: DOS Batch Forum
- Topic: Batch treat special characters as input errors
- Replies: 8
- Views: 7384
Re: Batch treat special characters as input errors
The answer provided by T3RR0R doesn't meet some of my expectations (please see my comment). Your answer doesn't suit me either : I don't intend to use WMIC because I actually get the user profiles directly from the Active Directory using another tool. Plus, you have a style of code that only experie...
- 30 Mar 2021 09:50
- Forum: DOS Batch Forum
- Topic: Batch treat special characters as input errors
- Replies: 8
- Views: 7384
Re: Batch treat special characters as input errors
Maybe there are other ways to achieve the same result. I'm open to all proposals.
- 29 Mar 2021 13:25
- Forum: DOS Batch Forum
- Topic: Batch treat special characters as input errors
- Replies: 8
- Views: 7384
Batch treat special characters as input errors
I want all non-numeric characters to be considered as input error. Alphabetic characters are well considered but not certain special characters like colons (and others ones). Any idea how to achieve this ? @echo off setlocal EnableDelayedExpansion set /a UserProfileNo=0 FOR /F "delims=" %%I IN ('dir...