Search found 4 matches
- 16 Oct 2014 14:11
- Forum: DOS Batch Forum
- Topic: Exclamation point not passed with CALL & delayedexpansion
- Replies: 5
- Views: 4464
Re: Exclamation point not passed with CALL & delayedexpansio
Do you know that you don't need this code to remove the Quotes. set _Buffer=%_Buffer:"=% Just do this. set _Buffer=%~1 Oh, excellent tip. Thank you for that! You may want to look at passing a variable name as a reference to your subroutine and then expand the variable in the subroutine. I'm no...
- 16 Oct 2014 10:38
- Forum: DOS Batch Forum
- Topic: Exclamation point not passed with CALL & delayedexpansion
- Replies: 5
- Views: 4464
Exclamation point not passed with CALL & delayedexpansion
I need some help understanding why the exclamation point is not passed on to a 'subroutine' when delayedexpansion is enabled. When delayedexpansion is not enabled, it works as expected: exclamation point is passed onto the subroutine. I'm sure I'm missing something simple, but what? Example code is ...
- 11 Nov 2011 05:50
- Forum: DOS Batch Forum
- Topic: String Manipulation: Escaping Special Characters
- Replies: 3
- Views: 4450
Re: String Manipulation: Escaping Special Characters
Thank you both for taking the time read this silly post.
Both of your suggestions work fine - its excellent stuff! I tried [] but I don't think I did it with ^.
Ed: Really clever & brilliant stuff you've linked to!
Both of your suggestions work fine - its excellent stuff! I tried [] but I don't think I did it with ^.
Ed: Really clever & brilliant stuff you've linked to!
- 09 Nov 2011 06:13
- Forum: DOS Batch Forum
- Topic: String Manipulation: Escaping Special Characters
- Replies: 3
- Views: 4450
String Manipulation: Escaping Special Characters
I have loads of fun with batch scripting. I tend to rely on batches for quick [& dirty] operations vs VBScript or PowerShell, mainly due to a lack of the same level of in-depth familiarity with those languages. I'm in need of assistance figuring this out a way to do some basic user input normali...