Search found 442 matches
- 16 Aug 2010 21:28
- Forum: DOS Batch Forum
- Topic: Simple batch Cryptography: howto crypt / decrypt ROT13:
- Replies: 32
- Views: 41568
Re: Simple batch Cryptography: howto crypt / decrypt ROT13:
It works but the caveats apply. Upon closer examination, I think a function miiight be able to interpret when " occurs and escape the necessary characters, resolving this DOS problem... unless the problem defeats the solution as well, lol. It would also have to compensate ^ based on presence of...
- 16 Aug 2010 01:50
- Forum: DOS Batch Forum
- Topic: Simple batch Cryptography: howto crypt / decrypt ROT13:
- Replies: 32
- Views: 41568
Re: Simple batch Cryptography: howto crypt / decrypt ROT13:
As a follow-up, here is a more robust encryptor that I mentioned in the previous post. The same caveats apply, except under caveat 1, ^ also needs to be escaped ^^ in a variable (but again, not from user input/text file). Clearly it has something to do with the different process below. A new caveat ...
- 15 Aug 2010 17:47
- Forum: DOS Batch Forum
- Topic: Simple batch Cryptography: howto crypt / decrypt ROT13:
- Replies: 32
- Views: 41568
Re: Simple batch Cryptography: howto crypt / decrypt ROT13:
Ok I don't know what you guys have done exactly, I'm not going to read it all, but this is my solution. This will be my first encryptor, I wrote this based on a concatenator I wrote yesterday for extracting in order, all numbers within a string (with some other features but it's irrelevant). If this...
- 14 Aug 2010 21:53
- Forum: DOS Batch Forum
- Topic: In-Depth Error Handling
- Replies: 3
- Views: 4613
Re: In-Depth Error Handling
Thanks aGerman, I thought you would reply. I just spent a few hours doing tests with special characters. I would blame myself for not realizing this, but I found out why you put quotes around the text following set. I've never seen written ANYWHERE in DOS tutorials that this is how you read special ...
- 13 Aug 2010 08:14
- Forum: DOS Batch Forum
- Topic: In-Depth Error Handling
- Replies: 3
- Views: 4613
In-Depth Error Handling
I would like to know more about batch error handling, if there's anything I don't know. Edit: I'm dealing only with tools installed with the OS from Windows XP, so no "choice" or anything, just basic DOS batch. Are there any caveats to using logical OR || after a command for generic error ...
- 02 Aug 2010 09:52
- Forum: DOS Batch Forum
- Topic: Is it possible to pipe an output to a for loop?
- Replies: 4
- Views: 5323
Re: Is it possible to pipe an output to a for loop?
Ahh, thanks again. I'm very rusty.
- 01 Aug 2010 17:40
- Forum: DOS Batch Forum
- Topic: Is it possible to pipe an output to a for loop?
- Replies: 4
- Views: 5323
Is it possible to pipe an output to a for loop?
Hi guys, new here.
For example, I have this here:
...but I'd like to do this if I can:
Thanks for your help.
For example, I have this here:
dir >dir.txt
for /f "tokens=5" %%a in (dir.txt) do @echo %%a
...but I'd like to do this if I can:
dir | for /f "tokens=5" %%a in (output of dir) do @echo %%a
Thanks for your help.