Search found 7 matches
- 29 Jun 2015 12:59
- Forum: DOS Batch Forum
- Topic: How to allow input of any character
- Replies: 9
- Views: 5401
Re: How to allow input of any character
aGerman - your suggestion is working like a charm. The only issue that I am having now is if the input parameters have embedded double quotes. the dos batch handles them fine, but java wants them escaped with a /. So how can i Find and replace in dos batch? I want to search my varaibles for an embed...
- 28 Jun 2015 17:43
- Forum: DOS Batch Forum
- Topic: How to allow input of any character
- Replies: 9
- Views: 5401
Re: How to allow input of any character
OK, there is so much that I do not know about DOS batch (not even sure what to call it). But I have come up with the following but it is terribly flawed ParameterInput.txt file. Again the idea is that the operators do not have to be concerned with escaping special characters. They would edit this fi...
- 28 Jun 2015 17:30
- Forum: DOS Batch Forum
- Topic: how to programmatically escape percent signs %
- Replies: 5
- Views: 5142
Re: how to programmatically escape percent signs %
starting a new thread. not getting far with this as I guess my original premise was flawed.
- 28 Jun 2015 15:05
- Forum: DOS Batch Forum
- Topic: How to allow input of any character
- Replies: 9
- Views: 5401
How to allow input of any character
I have a .bat file that calls a java program with a password parameter. Obviously the password can contain any combination of special characters. Currently the operator is editing the .bat file and entering the password with a set statement and then running. it is not working so well. what options d...
- 27 Jun 2015 07:38
- Forum: DOS Batch Forum
- Topic: how to programmatically escape percent signs %
- Replies: 5
- Views: 5142
Re: how to programmatically escape percent signs %
Can anyone help? I need to remove any special characters that will cause a problem from my variable. I am willing to try any solutions. Anyone have a link or code examples?
- 26 Jun 2015 06:39
- Forum: DOS Batch Forum
- Topic: how to programmatically escape percent signs %
- Replies: 5
- Views: 5142
Re: how to programmatically escape percent signs %
get problems with quotes and other special characters Is there a list of special characters that will cause a problem, and how to escape them? Also, is there not some code that can search within a variable for the special characters and replace them with the escape and special character? I did not ...
- 25 Jun 2015 16:52
- Forum: DOS Batch Forum
- Topic: how to programmatically escape percent signs %
- Replies: 5
- Views: 5142
how to programmatically escape percent signs %
I have a .bat file that passes in connection strings and password arguements to a java program. Any of these fields could have embedded percent signs. The values are entered by the client. I would like to programmatically search these fields and replace all % with %%. Below is an exmple where two ar...