Search found 177 matches
- 20 Jun 2020 11:44
- Forum: DOS Batch Forum
- Topic: Paint & Animation Studio
- Replies: 11
- Views: 10043
Re: VT code Batch Paint
Supporting files were required. That was the solution. Thanks.
- 20 Jun 2020 10:38
- Forum: DOS Batch Forum
- Topic: Paint & Animation Studio
- Replies: 11
- Views: 10043
Re: VT code Batch Paint
My O/S is Windows 10 64bit. Any idea about these errors, displayed with echo on? Font is set to Consolas 16. C:\Temp\DOSBatch>Set /A Max.Width= ( CurrentHorizontalResolution / ( Font.W * SF ) ) Divide by zero error. C:\Temp\DOSBatch>Set /A Max.hieght= ( ( CurrentVerticalResolution / Font.H ) / SF ) ...
- 14 May 2020 23:22
- Forum: DOS Batch Forum
- Topic: Debugging / syntax checksing tools for batch
- Replies: 27
- Views: 22858
Re: Debugging / syntax checksing tools for batch
I am a batch hobbyist working on large scripts, and these tips help me in debugging. - First, did you close the console window and rerun? If it worked without error, you could have had interfering variables in the environment. I am assuming you do not want your batch script to leave variables assign...
- 18 Jan 2020 16:53
- Forum: DOS Batch Forum
- Topic: If/Else in 1 line--only do something from Else statement
- Replies: 6
- Views: 7586
Re: If/Else in 1 line--only do something from Else statement
My O/S: Microsoft Windows [Version 10.0.18362.592] Obviously your Windows version is superior to mine :wink: @echo off setlocal set "code=100" If %code% gtr 0 If %code% leq 255 () else set "code=" If defined code (echo %code% is within limits) else echo value is NOT within limits C:\Temp\DOSBatch>te...
- 18 Jan 2020 11:25
- Forum: DOS Batch Forum
- Topic: If/Else in 1 line--only do something from Else statement
- Replies: 6
- Views: 7586
Re: If/Else in 1 line--only do something from Else statement
penpen, I will use your "( rem: )" solution to do nothing when a numeric value passes the lower and upper limits test. Speed in not an issue because only a few values are checked from a command-line entry. Thanks for your solution: If %code% gtr 0 If %code% leq 255 ( rem: ) else set "code=" Entries ...
- 17 Jan 2020 19:20
- Forum: DOS Batch Forum
- Topic: If/Else in 1 line--only do something from Else statement
- Replies: 6
- Views: 7586
Re: If/Else in 1 line--only do something from Else statement
DQ2000, what happened when you tested your solution? I get the error message: ) was unexpected at this time. Something like this works: If %code% gtr 0 If %code% leq 255 (set .=) else set "code=" but I'm asking to see if if there's a right way to do this, as I am prone to do it the wrong way first.
- 17 Jan 2020 16:53
- Forum: DOS Batch Forum
- Topic: If/Else in 1 line--only do something from Else statement
- Replies: 6
- Views: 7586
If/Else in 1 line--only do something from Else statement
What is the best coding form in writing this If/Else statement on 1 line? I have "echo OK" where nothing should be done. What should I replace it with? "(rem)" acted as if the batch file did nothing. Sorry if this topic was covered somewhere in history and I forgot the solution :? Thanks. Jerry @ech...
- 25 Nov 2019 16:14
- Forum: DOS Batch Forum
- Topic: Can I get access to an ascii character not in the standard set?
- Replies: 38
- Views: 32803
Re: Can I get access to an ascii character not in the standard set?
As posted in this forum, TinyPic image hosting is no longer available and this caused my images to go away. These links, after right clicking and choosing open in a new tab, pull up my project sample images for me. Clicking on the link just shows a white screen on my Windows 10 PC w/Firefox browser....
- 09 Aug 2019 10:58
- Forum: DOS Batch Forum
- Topic: SORT Order not working correction
- Replies: 8
- Views: 11860
Re: SORT Order not working correction
Here's my solution which is to create an artificial sort field. I'm looking forward to reading Antonio's solution. I rearranged lines in the source text to show that it works. @echo off setlocal EnableDelayedExpansion set "srce=source.txt" set "del=|" >_temp.txt ( For /F "tokens=1-6* delims=%del%" %...
- 05 Jun 2019 20:17
- Forum: DOS Batch Forum
- Topic: For Loop - How do I keep the delimiter?
- Replies: 0
- Views: 21229
For Loop - How do I keep the delimiter?
Keeping the delimiter when parsing a string with a For loop was covered previously; I can't find it and I forgot how it was done. It was some trick with the asterisk. From a user entry, remove "+10" from string "509 1116+10 88" leaving "509 1116 88" The "+" option is valid when browsing the whole da...
- 08 May 2019 12:19
- Forum: DOS Batch Forum
- Topic: Fire-Colored particle system
- Replies: 6
- Views: 6516
Re: Fire-Colored particle system
I have questions about two lines. If someone could explain, that would be great. What does "& echo !esc![?25l" do? In the assignment of screen, how is "H" doing its job? Changing it to some other character gives different spacing and frequency. "G" and "I" produce many more characters than H. Thanks...
- 08 May 2019 09:23
- Forum: DOS Batch Forum
- Topic: Fire-Colored particle system
- Replies: 6
- Views: 6516
Re: Fire-Colored particle system
Any idea why the batch code does this? The termination is my doing. This is all displayed in a smaller window, same as your image. My O/S: Microsoft Windows [Version 10.0.17134.706] [38;2;191;71;7m█[0m [38;2;175; 63;7m█[0m;199;7[3[38;2;199;71;[38;2; 175;63;7m█[0m38;2;223;79;7m█[0m38;[3 8;2;191;71;7m...
- 28 Mar 2019 18:46
- Forum: DOS Batch Forum
- Topic: How can I close batch file from any prompt in code?
- Replies: 2
- Views: 3258
Re: How can I close batch file from any prompt in code?
That works! And very easy to do. My code uses your :choice function, and uppercase X will be the keypress (and also as an entry at the prompt for text input) to exit completely from any screen. spacebar and Enter key are assigned error level 0 in the choice function. I'll use exit /b 50 to communica...
- 28 Mar 2019 13:39
- Forum: DOS Batch Forum
- Topic: How can I close batch file from any prompt in code?
- Replies: 2
- Views: 3258
How can I close batch file from any prompt in code?
I would like to add <shift+X> as an option to exit from the batch script from any of the prompts for input, and not close the cmd window. Can this be done? I searched a little and found no answer. I tried a goto :exitNow but the code flows from the label that has exit /b, back to where the goto was ...
- 25 Mar 2019 12:05
- Forum: DOS Batch Forum
- Topic: Title command to unclutter title bar question
- Replies: 2
- Views: 3421
Re: Title command to unclutter title bar question
Yesterday "Title" was not working for me. During code development, "cmd" appeared in the title bar and repeated itself. Today, just "Title" is keeping the bar clear. There is a post on Stack Overflow about how Kedit for Windows, my text editor, saves files. It states that Kedit does not keep the bla...