Search found 4 matches

by ryuh
21 Oct 2014 05:29
Forum: DOS Batch Forum
Topic: Help with batch error
Replies: 9
Views: 5294

Re: Help with batch error

You must differentiate the "z" letter used to replace the "a" from any other "z" letter that may appear in the text, that is, you must use a different character for the first replacement and, after replaced the original "z", replace again the different charac...
by ryuh
20 Oct 2014 03:21
Forum: DOS Batch Forum
Topic: Help with batch error
Replies: 9
Views: 5294

Re: Help with batch error

Going to assume you only showed us part of your code as there is no need for using Delayed Expansion with the code you showed us. Also, if you search the forums you will see this type of encryption has already been done on the forums. It is called ROT13. There is several encryption topics that have...
by ryuh
20 Oct 2014 03:18
Forum: DOS Batch Forum
Topic: Help with batch error
Replies: 9
Views: 5294

Re: Help with batch error

When you execute your batch file this first line changes a to z. Then when the last line runs it changes z back to a. set "text=!text:a=z!" set "text=!text:z=a!" That makes sense.. but how would it be fixed? Should I add another variable to separate the 2 groups of letters? a-m,...
by ryuh
19 Oct 2014 13:15
Forum: DOS Batch Forum
Topic: Help with batch error
Replies: 9
Views: 5294

Help with batch error

Hello, I am trying to create a batch file that encrypts whatever text is typed in it in a way that it replaces every "a" with a "z" and every "b" with a "y" and so on. But when i execute it, and type any letter from "a" to "m", it does not ...