Search found 15 matches

by CodedZyntaX
11 Dec 2011 23:42
Forum: DOS Batch Forum
Topic: Running a batch in Windows Vista, 7 and higher (Future)
Replies: 1
Views: 3330

Running a batch in Windows Vista, 7 and higher (Future)

Hi,

What are the things that I need to consider in running all bats available in this websaite to Witndows Vista annd higher?

CodedZyntaX
by CodedZyntaX
11 Dec 2011 08:01
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

Re: String encrytion and decryption

Thank you guys.

I learned a lot from you guys.
by CodedZyntaX
10 Dec 2011 11:16
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

Re: String encrytion and decryption

I understand your point. However I don't consider my for loop broken since it's working and giving the same output as the one that you suggested.

In fact, I tested the speed of both method but both encrypted the string "Hello World" in 1.56 Sec.
by CodedZyntaX
10 Dec 2011 03:56
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

Re: String encrytion and decryption

I used this kind of loop because of the special characters like " ! % > < etc. If I used 'findstr /n /c:"%chr%" etable.etb' This will not work if chr is equal to (") quote or !, >, etc. This batch is working. My only concern is how to speed up the conversion of this batch file.
by CodedZyntaX
10 Dec 2011 01:47
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

Re: String encrytion and decryption

Here's my own method for encrypting the file. enx.bat @echo off SETLOCAL ENABLEDELAYEDEXPANSION set "str=%1" set str2=%str:~1,-1% set encrypt_type=127 set encrypted_str= set ctr=0 set val= call strlen %str% :start if %ctr% == %strlen% goto :output set chr=!str2:~%ctr%,1! for /f "token...
by CodedZyntaX
09 Dec 2011 21:45
Forum: DOS Batch Forum
Topic: Redirecting Ouput Issue.
Replies: 3
Views: 4575

Re: Redirecting Ouput Issue.

I will surely follow these steps and apply it in my my new batch files.

I'm just an intermediate when it comes to batch programming however I'm really willing to stretch my boundaries.

Thank you dbenham and orange_batch for all these tips.
by CodedZyntaX
09 Dec 2011 21:37
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

Re: String encrytion and decryption

I already created my own encryption batch. However it reply takes a lot of time to encrypt more than 500 words.

Is there any faster batch encryption?
by CodedZyntaX
08 Dec 2011 10:17
Forum: DOS Batch Forum
Topic: Is it possible to convert a character to its ASCII value?
Replies: 9
Views: 37333

Re: Is it possible to convert a character to its ASCII value

Thank you dbenham i appreciate your help.

All my questions regarding this are answered.

I'm hoping to get more tips from you.
by CodedZyntaX
08 Dec 2011 02:17
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 18002

String encrytion and decryption

Hi Guys,

What will be the best code to encrypt and decrypt a string even if it contains a special characters? Such as !@#$%^*()_+" and etc.?

CodedZyntaX
by CodedZyntaX
08 Dec 2011 01:09
Forum: DOS Batch Forum
Topic: Is it possible to convert a character to its ASCII value?
Replies: 9
Views: 37333

Re: Is it possible to convert a character to its ASCII value

Thank you for your response. I like the sample code using cmd /c exit. May I have sample sample usage and output of the bat file that you just posted related to my post? And I already downloaded the command line calculator however I don't know how to use it to convert ascii code to it's value and st...
by CodedZyntaX
08 Dec 2011 00:27
Forum: DOS Batch Forum
Topic: Redirecting Ouput Issue.
Replies: 3
Views: 4575

Redirecting Ouput Issue.

Hi Guys, I need help. I have a bat file (strlen.bat) that will calculate the length of a string. Example usage 1: strlen "Hello World" Output: 11 (The quotes are removed) strlen ""Hello World" Output: 12 Now I want to transfer the output to variable I typed in this code in m...
by CodedZyntaX
07 Dec 2011 21:52
Forum: DOS Batch Forum
Topic: Is it possible to convert a character to its ASCII value?
Replies: 9
Views: 37333

Is it possible to convert a character to its ASCII value?

Hi Guys,

Is it possible to convert a character to its ASCII value using a batch file?
by CodedZyntaX
07 Dec 2011 15:33
Forum: DOS Batch Forum
Topic: Searching Double quote using FINDSTR inside FOR
Replies: 4
Views: 6892

Re: Searching Double quote using FINDSTR inside FOR

Thanks guys! I truly appreciate your help.
by CodedZyntaX
07 Dec 2011 15:05
Forum: DOS Batch Forum
Topic: Searching Double quote using FINDSTR inside FOR
Replies: 4
Views: 6892

Re: Searching Double quote using FINDSTR inside FOR

Thank you so much !K.

I appreciate your help.

I just registered an hour ago and I didn't expect that I will get an answer within an hour.

Again, Thank you!
by CodedZyntaX
07 Dec 2011 14:43
Forum: DOS Batch Forum
Topic: Searching Double quote using FINDSTR inside FOR
Replies: 4
Views: 6892

Searching Double quote using FINDSTR inside FOR

Hi Guys, I need help please. I have a test file named s.txt. Here's the contents of the s.txt: $ % " When I type in FINDSTR /n /c:""" s.txt in the command line the output is 3:". However when I type in FOR /f "tokens=1 delims=:" %a in ('FINDSTR /n /c:""&q...