Search found 6 matches
- 14 Feb 2012 00:17
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
Re: how to use :Format function effectively
Hi Foxidrive, thanks for the suggestion. I'd tried earlier to go straight from `dir ...` to `%~ng% without a temp file but failed. Seeing your example I think I didn't have the delims right. In any case, the 'dir /d' is get dir to do the heavy lifting of putting the names in columns, and 'findstr .....
- 13 Feb 2012 11:52
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
Re: how to use :Format function effectively
With some testing it appears that the [-widthoffset] has to be specified for each term. ... It only seems to support 8 terms. Thanks for confirming that it's not just my system configuration or some kind of copy paste error. Also thanks for an idea of how to get closer to what I wanted. I decided t...
- 09 Feb 2012 15:13
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
Re: how to use :Format function effectively
maphew wrote:Hi Alan, I appreciate your willingness to help troubleshoot this, thanks
or rather the full script and output was supposed to be there but whenever I pressed save or submit I got a server reset error until I removed it.
...so here it is on pastebin instead: http://pastebin.com/TSbJQ5sH
- 09 Feb 2012 15:07
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
Re: how to use :Format function effectively
Hi Alan, I appreciate your willingness to help troubleshoot this, thanks I played with and without negatives for the Fmt argument. The subsequent negative parameters push the columns to the right. Without them the output overposts each other. In all cases the results were still truncated. Likewise c...
- 06 Feb 2012 18:53
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
Re: how to use :Format function effectively
Hi Alan, thanks for the response. It's not the variable name, I've tried others with no difference, the remaining items are still discarded. (For what it's worth, I use dot as variable prefix in preference to underscore because it's easier to type.) I have also been searching ':Format', and 'columns...
- 05 Feb 2012 15:56
- Forum: DOS Batch Forum
- Topic: how to use :Format function effectively
- Replies: 12
- Views: 15843
how to use :Format function effectively
Hi, I've just discovered dostips.com for the first time. I've been bashing away at batch files for years, with some success here and there, and am bemused that I've never stumbled across this excellent resource before. Thanks so much for sharing your knowledge, I've learned a lot in the last hour. N...