Search found 8 matches
- 19 Oct 2017 09:14
- Forum: DOS Batch Forum
- Topic: Error in setting variable in FOR loop & extracting text from a textfile
- Replies: 7
- Views: 5700
Re: Error in setting variable in FOR loop & extracting text from a textfile
The code you provided is clear. And works the way I wanted it. The commentary to the code is helpful, and doesnt need extended explanation. Thank you. Whenever I have future problems, and I make a topic to ask for help. Ofcourse I be sure not to post about this issue in a different topic. Since this...
- 18 Oct 2017 08:48
- Forum: DOS Batch Forum
- Topic: Error in setting variable in FOR loop & extracting text from a textfile
- Replies: 7
- Views: 5700
Re: Error in setting variable in FOR loop & extracting text from a textfile
Yes, Compo. That is the desired output that I want. With the current code, I somehow have wrongly set the variable %%A to the variable called words. This command is found in the code starting with the label :nextletter Because instead of only one letter to be shown in the variable called calc when t...
- 17 Oct 2017 08:52
- Forum: DOS Batch Forum
- Topic: Error in setting variable in FOR loop & extracting text from a textfile
- Replies: 7
- Views: 5700
Re: Error in setting variable in FOR loop & extracting text from a textfile
Thanks for replying. My desired output is a textfile called DATAbases.txt, in here i want to have the output of all words letter by letter from the Woorden.txt, but specifically, I want to use a batchfile that adds a value to a variable, the value depends on the placement of the letter in the alphab...
- 16 Oct 2017 07:21
- Forum: DOS Batch Forum
- Topic: Error in setting variable in FOR loop & extracting text from a textfile
- Replies: 7
- Views: 5700
Error in setting variable in FOR loop & extracting text from a textfile
In a batch script that I am writing I got a problem with a variable %calc% that is not showing the correct value. It should display per letter from a word that is pulled from the file Woorden.txt. And per letter check which letter it is, and change some values. Then go to the next letter and continu...
- 01 Sep 2015 03:28
- Forum: DOS Batch Forum
- Topic: how to remove dot and colon in text color use?
- Replies: 8
- Views: 5448
Re: how to remove dot and colon in text color use?
@aacini Thanks i give that a try. Fox For my taste of coding i want a less robust code. And the solution aacini gave is fine. Though i can explore the code of carlos. Im not that advanced in batchfiles to fully understand and use carlos code. One issue with the code you showed me. In the output the ...
- 31 Aug 2015 08:31
- Forum: DOS Batch Forum
- Topic: how to remove dot and colon in text color use?
- Replies: 8
- Views: 5448
Re: how to remove dot and colon in text color use?
Alright, I give you the whole code. This is saved in a notepad as colortest.bat @echo off echo. CALL :ColorText 0B "color" set /p ".= " <nul CALL :ColorText 0C "this" set /p ".= " <nul CALL :ColorText 01 "line" set /p ".= " <nul CALL :Color...
- 30 Aug 2015 12:47
- Forum: DOS Batch Forum
- Topic: how to remove dot and colon in text color use?
- Replies: 8
- Views: 5448
Re: how to remove dot and colon in text color use?
No. I write the code in a notepad. Save it as colortext.bat
I am not used to the program that you speak about.
Can the result i ask for be done in a regular textfile?
It seems the code for the program you mention is a bit different from how i wrote the code.
I am not used to the program that you speak about.
Can the result i ask for be done in a regular textfile?
It seems the code for the program you mention is a bit different from how i wrote the code.
- 30 Aug 2015 05:38
- Forum: DOS Batch Forum
- Topic: how to remove dot and colon in text color use?
- Replies: 8
- Views: 5448
how to remove dot and colon in text color use?
echo. CALL :ColorText 0B "color" set /p ".= " <nul CALL :ColorText 0C "this" set /p ".= " <nul CALL :ColorText 01 "line" end set /p ".= " <nul echo. echo. pause exit :ColorText [%1 = Color] [%2 = Text] set /p ".=." > "%~2&qu...