Search found 8 matches
- 23 Nov 2011 02:17
- Forum: DOS Batch Forum
- Topic: Capture trailing characters of a string based on a delimiter
- Replies: 5
- Views: 5541
Re: Capture trailing characters of a string based on a delim
That's great Dave. Thanks again for your interest in and resolution to my problem.
- 22 Nov 2011 07:41
- Forum: DOS Batch Forum
- Topic: Capture trailing characters of a string based on a delimiter
- Replies: 5
- Views: 5541
Re: Capture trailing characters of a string based on a delim
Excellent dbenham,
that's just what I needed. There will always be a value so no risk of it ending with a delimiter and it will never be an = sign.
Thanks for the prompt reply.
that's just what I needed. There will always be a value so no risk of it ending with a delimiter and it will never be an = sign.
Thanks for the prompt reply.
- 22 Nov 2011 05:44
- Forum: DOS Batch Forum
- Topic: Capture trailing characters of a string based on a delimiter
- Replies: 5
- Views: 5541
Capture trailing characters of a string based on a delimiter
Hello all, does anyone know if a FOR or SET command can be used to capture the right hand characters based on a final delimiter? Here are some basic examples which includes commas, spaces, MULTIPLE backslashes or none of the aforementioned: set script=windows set script=c:\dos set script=fail,back,A...
- 12 Oct 2010 03:57
- Forum: DOS Batch Forum
- Topic: Assistance required with Advanced SET syntax
- Replies: 8
- Views: 8887
Re: Assistance required with Advanced SET syntax
Thanks a lot amel27, that works great. My batch file is now significantly faster.
Regards,
sherlock99.
Regards,
sherlock99.
- 12 Oct 2010 01:58
- Forum: DOS Batch Forum
- Topic: Assistance required with Advanced SET syntax
- Replies: 8
- Views: 8887
Re: Assistance required with Advanced SET syntax
Hello again. I knew I'd end up asking another question (hence my quest for self-training). My previous question revolved around capturing a specific set of characters. I would also like to know the most efficient way of capturing a substring. This is an example string: create volume drives=(21,8 21,...
- 10 Oct 2010 01:46
- Forum: DOS Batch Forum
- Topic: Assistance required with Advanced SET syntax
- Replies: 8
- Views: 8887
Re: Assistance required with Advanced SET syntax
I know Ghostmachine4. I've done some VB scripting. As I grew up with COBOL, PASCAL and Dos, I guess I just like the challenge of squeezing every last feature out of Dos before its consigned to the floppy disks of history !!!. I know what you are saying though. Time to move on. Thanks for your replie...
- 09 Oct 2010 05:31
- Forum: DOS Batch Forum
- Topic: Assistance required with Advanced SET syntax
- Replies: 8
- Views: 8887
Re: Assistance required with Advanced SET syntax
Thanks for the reply ghostmachine4. I'd heard of sed for windows but I was trying to keep it in the Dos only domain so my batch file could be easiliy handed out without the requirement of third party tools . aGerman, that is exactly what I'm after. Many thanks. With regards the self-training, I was ...
- 08 Oct 2010 08:25
- Forum: DOS Batch Forum
- Topic: Assistance required with Advanced SET syntax
- Replies: 8
- Views: 8887
Assistance required with Advanced SET syntax
Hi all, hope someone can help. I need help on string manipulation using the SET command. I found the link m which has been very useful but lacks the exact script I'm after. Quite simply, I want to be able to strip away all but the last 3 characters of an environment variable. So for example value=12...