Developers, Developers, Developers! Maksim Sorokin IT Blog

27May/100

Simple Variable Substitution in BAT Files

From set command reference:
>> Environment variable substitution has been enhanced as follows:
>> %PATH:str1=str2%

For example you can change the backslashes to slashes in the URL parameter when you pass it to the Java file:

echo %resources.home:\=/%
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Trackbacks are disabled.