Search found 1611 matches

by Aacini
13 Nov 2018 08:32
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 3718

Re: Writing Batch code in an easier way with the aid of macros

Yes. I explained this point in detail at this reply : . . . Suppose you have a macro-function that is usually executed this way: for /F "tokens=1-26" %%a in ("param1 param2 resultvar") do %macroFunc% How we may execute the macro in the following way? %macroFuncWithParams% param1 param2 resultvar Par...
by Aacini
11 Nov 2018 23:40
Forum: DOS Batch Forum
Topic: set/PBig: Input and output of bigger characters
Replies: 1
Views: 758

Re: set/PBig: Input and output of bigger characters

I developed a new version of this program that includes these features: Definition of more than one font that can be selected via a parameter. Management of lowercase letters. Input of a variable without a prompt. @echo off setlocal EnableDelayedExpansion rem set/PBig: Input and output of bigger cha...
by Aacini
11 Nov 2018 13:13
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 7590

Re: Can I get access to an ascii character not in the standard set?

. . . It became obvious that text alignment and other manipulations in the process between input and output required workaround solutions for the special characters, “ ! < > & etc. . . . Jerry Err, no... It is not obvious for me... For that reason I asked you to include a simple example that show t...
by Aacini
09 Nov 2018 16:22
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 3718

Re: Writing Batch code in an easier way with the aid of macros

@bocsi6, Mmmm... Your question is out of context. You extracted parts of the original post and then asked a question about such separate parts... This is the original post: We may use very simple macros to provide small parts of frequently used commands to make they simpler to use. For example, we m...
by Aacini
09 Nov 2018 07:51
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 7590

Re: Can I get access to an ascii character not in the standard set?

I just reread this whole thread and I am lost a little. I am afraid I don't understand the core point of this topic. These are my thoughs: All the code-page changes and UTF-8, UTF-16, etc. file encodings stuff is used when a program wants to display a non-Ascii character on the screen. Just to be cl...
by Aacini
08 Nov 2018 19:37
Forum: DOS Batch Forum
Topic: Can I get access to an ascii character not in the standard set?
Replies: 37
Views: 7590

Re: Can I get access to an ascii character not in the standard set?

To post and show an image here just download your image in a public shared images service, like https://imgur.com/, and then include here the BBC link between [img] tags...

Antonio
by Aacini
03 Nov 2018 22:10
Forum: DOS Batch Forum
Topic: set/PBig: Input and output of bigger characters
Replies: 1
Views: 758

set/PBig: Input and output of bigger characters

This is another funny program that emulates SET /P command. It can show a message and optionally also read a string, but the core point is that the characters displayed are bigger than the standard characters and are created combining graphic characters from code page 850; this point means that not ...
by Aacini
28 Oct 2018 19:19
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 1648

Re: Getting >nul 2>&1 to work within a batch file

IMHO the OP have described the problem inaccurately and his question have several details... I think he wanted to "Getting >nul 2>&1 to work within a doskey macro when the corresponding doskey command is executed in a batch file ". Although the question said that "the following command" (that is a d...
by Aacini
28 Oct 2018 14:57
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 1648

Re: Getting >nul 2>&1 to work within a batch file

Anther way to "get it to work with just the word closeall on its own?" is creating a Batch file named closeall.bat with the desired command... :roll: They'd still have to either call the secondary script or make peace with the fact that it would have to be the last command in the main script. As I ...
by Aacini
28 Oct 2018 09:32
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 1648

Re: Getting >nul 2>&1 to work within a batch file

This should work:

Code: Select all

doskey closeall=taskkill /IM "cmd.exe" /f ^>nul 2^>^&1
Anther way to "get it to work with just the word closeall on its own?" is creating a Batch file named closeall.bat with the desired command... :roll:

Antonio
by Aacini
27 Oct 2018 09:29
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 103724

Re: FindRepl.bat:New regex utility to search and replace strings

Ok. A couple points about your concern. First of all, these commands: set PARM="filename with space" set FNAME="d:\directory\subdir with space" set COMMENT="comment with spaces" assigns to the variables the values placed after the equal sign including the quotes . These quotes interfere with posteri...
by Aacini
25 Oct 2018 03:55
Forum: DOS Batch Forum
Topic: replacing a hex sequence in a binary file with a hybrid .bat?
Replies: 18
Views: 4192

Re: replacing a hex sequence in a binary file with a hybrid .bat?

I like it :D Once I saw your idea to use CERTUTIL, I began thinking of all the optimizations that could be done, and you hit all that I could think of, especially the use of SET /P to read through all the changes, and FINDSTR to read/write the remainder. An "optimization" I thought on, but not impl...
by Aacini
24 Oct 2018 22:09
Forum: DOS Batch Forum
Topic: replacing a hex sequence in a binary file with a hybrid .bat?
Replies: 18
Views: 4192

Re: replacing a hex sequence in a binary file with a hybrid .bat?

This topic is rather interesting to me, so I wrote a complete solution for it. Please, note that does not matter the original value of the bytes in the file, just the offset and the new value at such offset. This is the code. An explanation and example of its use is below. @echo off setlocal EnableD...
by Aacini
16 Oct 2018 14:13
Forum: DOS Batch Forum
Topic: Renaming Data
Replies: 10
Views: 1616

Re: Renaming Data

You should not describe the data by examples only . You should always use clear English to describe the data; otherwise, it could lead to confusions... @echo off setlocal set "letters=abcdefghijklmnopqrstuvwxz" rem i have a bunch of folders for /D %%f in (*) do ( rem with a bunch of data in it cd "%...
by Aacini
29 Sep 2018 10:33
Forum: DOS Batch Forum
Topic: Source code for MS-DOS v1.25 and v2.0
Replies: 2
Views: 1523

Re: Source code for MS-DOS v1.25 and v2.0

I already got they from the Computer History Museum since 2014, but the files are of version 1.1 (not 1.25) and 2.0...

EDIT: Ops, a small correction: IBM's DOS 1.1 is the same as MS-DOS 1.25...

Antonio