can you sum within a function or use '!' within '!' in cmd? The 2019 Stack Overflow Developer...
What is the padding with red substance inside of steak packaging?
Could an empire control the whole planet with today's comunication methods?
Didn't get enough time to take a Coding Test - what to do now?
Do working physicists consider Newtonian mechanics to be "falsified"?
Is an up-to-date browser secure on an out-of-date OS?
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
Presidential Pardon
Sort list of array linked objects by keys and values
Why are PDP-7-style microprogrammed instructions out of vogue?
Simulating Exploding Dice
How to read αἱμύλιος or when to aspirate
Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?
How do spell lists change if the party levels up without taking a long rest?
should truth entail possible truth
Why not take a picture of a closer black hole?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
Is 'stolen' appropriate word?
Circular reasoning in L'Hopital's rule
How did passengers keep warm on sail ships?
How to support a colleague who finds meetings extremely tiring?
Word for: a synonym with a positive connotation?
How to handle characters who are more educated than the author?
Would an alien lifeform be able to achieve space travel if lacking in vision?
can you sum within a function or use '!' within '!' in cmd?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Useful Command-line Commands on WindowsHow do you handle “CMD does not support UNC paths as current directories”?Why is my IF comparison op failing?net use mapping not working in batch files but works in cmdbatch file infinite loop when parsing fileMigrating ODBC information through a batch fileTrying to run a netsh batch with foreign charactersCan't run .bat file off share, but can from cmdHow can I select replace file automaticaly in cmd?How can I sleep in a windows batch file within a non-interactive session?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Having some difficulty with the delayedexpansion in cmd. This might be a stupid question but is there any way of summing within a function (ie without 'set') or using '!' within '!' (or something to the same effect); for example could "~%%n+%y%" in the case below be treated as the sum of its parts by use of brackets or should i just come at it from a different angle?
for /l %%n in (10 1 36) do (
for /f %%a in ("!alpha:~%%n+%y%,1!") do (
set "code=!code:%%n=%%a!"))
Any help would be greatly appreciated. Thanks
batch-file windows-command-prompt batch
New contributor
add a comment |
Having some difficulty with the delayedexpansion in cmd. This might be a stupid question but is there any way of summing within a function (ie without 'set') or using '!' within '!' (or something to the same effect); for example could "~%%n+%y%" in the case below be treated as the sum of its parts by use of brackets or should i just come at it from a different angle?
for /l %%n in (10 1 36) do (
for /f %%a in ("!alpha:~%%n+%y%,1!") do (
set "code=!code:%%n=%%a!"))
Any help would be greatly appreciated. Thanks
batch-file windows-command-prompt batch
New contributor
add a comment |
Having some difficulty with the delayedexpansion in cmd. This might be a stupid question but is there any way of summing within a function (ie without 'set') or using '!' within '!' (or something to the same effect); for example could "~%%n+%y%" in the case below be treated as the sum of its parts by use of brackets or should i just come at it from a different angle?
for /l %%n in (10 1 36) do (
for /f %%a in ("!alpha:~%%n+%y%,1!") do (
set "code=!code:%%n=%%a!"))
Any help would be greatly appreciated. Thanks
batch-file windows-command-prompt batch
New contributor
Having some difficulty with the delayedexpansion in cmd. This might be a stupid question but is there any way of summing within a function (ie without 'set') or using '!' within '!' (or something to the same effect); for example could "~%%n+%y%" in the case below be treated as the sum of its parts by use of brackets or should i just come at it from a different angle?
for /l %%n in (10 1 36) do (
for /f %%a in ("!alpha:~%%n+%y%,1!") do (
set "code=!code:%%n=%%a!"))
Any help would be greatly appreciated. Thanks
batch-file windows-command-prompt batch
batch-file windows-command-prompt batch
New contributor
New contributor
New contributor
asked 3 mins ago
user519110user519110
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
user519110 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962883%2fcan-you-sum-within-a-function-or-use-within-in-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
user519110 is a new contributor. Be nice, and check out our Code of Conduct.
user519110 is a new contributor. Be nice, and check out our Code of Conduct.
user519110 is a new contributor. Be nice, and check out our Code of Conduct.
user519110 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962883%2fcan-you-sum-within-a-function-or-use-within-in-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown