Search found 553 matches

by miskox
09 Jul 2014 10:40
Forum: DOS Batch Forum
Topic: BrainF*** Interpreter in Batch
Replies: 61
Views: 34851

Re: BrainF*** Interpreter in Batch

Dumping the source file first would make it possible to process all values (0-255) (agerman's excelent file dump: viewtopic.php?p=14361#p14361).

Saso
by miskox
30 Jun 2014 04:37
Forum: DOS Batch Forum
Topic: Echo not working on lines which got 0 at end of line
Replies: 6
Views: 4873

Re: Echo not working on lines which got 0 at end of line

Sometimes it is better to do it like this:

Code: Select all

>>test.txt (Echo REPEAT : 3 : 0 : 0 : Enter the number of iterations: : 0 : 0)


Saso
by miskox
20 Jun 2014 13:43
Forum: DOS Batch Forum
Topic: How to findstr strings that are German?
Replies: 10
Views: 10238

Re: How to findstr strings that are German?

The reason FINDSTR is not working is because FINDSTR fails to work with many extened ASCII characters (hex code > 127) if they are used on the command line. If an extended ASCII character such as the " ü " (dependent on your code page) is used on the command line in a search string, then ...
by miskox
20 Jun 2014 02:04
Forum: DOS Batch Forum
Topic: How to findstr strings that are German?
Replies: 10
Views: 10238

Re: How to findstr strings that are German?

We also have characters that are not in the English alphabet. All you have to do is: - convert the original file from the CP you have in Windows (I have CP1250) to your DOS CP (I have CP852) - then you should be able to enter the letter Brunsbüttel in the DOS window (because it is in your DOS codepa...
by miskox
14 Jun 2014 14:04
Forum: DOS Batch Forum
Topic: [Another] MENU system
Replies: 2
Views: 2496

Re: [Another] MENU system

Here is another update. Changes: - procedure now determines the required privileges for a user based on %username% system variable - userdata is stored within the procedure (starts with UUUUU (menu data starts with MMMMM) - if %username% does not exist in the database General User is assumed (with p...
by miskox
11 Jun 2014 10:02
Forum: DOS Batch Forum
Topic: [Another] MENU system
Replies: 2
Views: 2496

Re: [Another] MENU system

Here is updated code without cursorpos.exe @echo off REM -------------------------------------MENU SYSTEM---------------------------------------------- REM (C) 2000 Saso Tomat - First developed in DCL on OpenVMS REM (C) 2014 Saso Tomat - Port to Windows Batch REM REM This is a menu system with menu ...
by miskox
09 Jun 2014 01:19
Forum: DOS Batch Forum
Topic: [Another] MENU system
Replies: 2
Views: 2496

[Another] MENU system

Here is a working menu system. Originaly I wrote it in 2000 in DCL on OpenVMS but only now I managed to port it to batch. It displays a word 'menu' infront of the selection if there is a sub menu behind that choice. Currently procedure requires Aacini's cursorpos.exe. @echo off REM -----------------...
by miskox
05 Jun 2014 02:02
Forum: DOS Batch Forum
Topic: Convert decimal to base N and vice versa
Replies: 3
Views: 3259

Re: Convert decimal to base N and vice versa

Here is an update. I added small letters a-z to the list of available characters. Now the maximum base is 62. Because dos does not distinguish between capital and small letters in variable names: set mapA=10 and set mapa=40 mapping small letters to array does not work. Instead I used a temporary fil...
by miskox
03 Jun 2014 03:15
Forum: DOS Batch Forum
Topic: Convert decimal to base N and vice versa
Replies: 3
Views: 3259

Convert decimal to base N and vice versa

Based on this Aacini's work http://www.dostips.com/forum/viewtopic.php?f=3&t=5665 here is the converter for converting between decimal numbers and base-N (and vice versa). It even calculates the length (number of characters) of the result. Base-N can be between 2 and 36 (inclusive). Saso @echo o...
by miskox
02 Jun 2014 13:38
Forum: DOS Batch Forum
Topic: Convert decimal numbers to base 36 and vice versa
Replies: 5
Views: 4828

Re: Convert decimal numbers to base 36 and vice versa

Aacini: I tried to understand everything but it looks like I am too blond (though I am not). Please explain the following commands: Why does the command below display each part of the 'map' variable as a separate line (record)? set "map=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" for /F "de...
by miskox
02 Jun 2014 12:02
Forum: DOS Batch Forum
Topic: Convert decimal numbers to base 36 and vice versa
Replies: 5
Views: 4828

Re: Convert decimal numbers to base 36 and vice versa

Aacini: thanks alot. Works perfectly.

Saso
by miskox
02 Jun 2014 06:50
Forum: DOS Batch Forum
Topic: Convert decimal numbers to base 36 and vice versa
Replies: 5
Views: 4828

Convert decimal numbers to base 36 and vice versa

Hi all! Based on this http://www.dostips.com/forum/viewtopic.php?p=34025#p34025 I decided to change the record offset number and record length number with some encoded information (to minimize a chance of finding the number user enters in the 'record offset' field because I also modifed the searchin...
by miskox
30 May 2014 14:09
Forum: DOS Batch Forum
Topic: Getting file size [speed tests]
Replies: 1
Views: 2288

Getting file size [speed tests]

I am updating my program to maintain a database with 24000+ records. I changed it to INDEXED file (see http://www.dostips.com/forum/viewtopic.php?f=3&t=5552). It works very well (I have 12 fields, demo has only 3 - one of the changes was splitting the first field (record offset+record length to ...
by miskox
30 May 2014 02:13
Forum: DOS Batch Forum
Topic: USA Flag batch file
Replies: 28
Views: 22348

Re: USA Flag batch file

Does it really matter? The flag is far from even coming close to being an accurate representation of the US Flag. Way to many stars and way too many stripes. It's not the US flag it is the fact that I have problems with other command procedures (.cmds) aswell. And it looks like this is the reason. ...
by miskox
29 May 2014 12:37
Forum: DOS Batch Forum
Topic: USA Flag batch file
Replies: 28
Views: 22348

Re: USA Flag batch file

No difference. I use XP PRO 32bit. Can anyone with XP test this if it works?

Saso