Is it possible to add multiple files into .cab file with MAKECAB?
Thanks.
Saso
Search found 556 matches
- 03 Dec 2014 06:41
- Forum: DOS Batch Forum
- Topic: Multiple files in .cab file
- Replies: 4
- Views: 5705
- 29 Nov 2014 03:54
- Forum: DOS Batch Forum
- Topic: Display first/last N lines from file
- Replies: 4
- Views: 4192
Re: Display first/last N lines from file
Thank you all for your answers.
I like Aacini's version a lot - it is very quick.
I prefer not to use 3rd party programs if possible.
Again, thank you all.
Saso
I like Aacini's version a lot - it is very quick.
I prefer not to use 3rd party programs if possible.
Again, thank you all.
Saso
- 27 Nov 2014 02:26
- Forum: DOS Batch Forum
- Topic: Display first/last N lines from file
- Replies: 4
- Views: 4192
Display first/last N lines from file
Hi all! How can I display (or set an array of variables (for example x[cnt])) of first/last n lines from a .txt file? http://www.dostips.com/forum/viewtopic.php?f=3&t=3633 has a solution for reading all lines to variable. One way would be to: 1. count the number of lines 2. sort in reverse (if d...
- 09 Jul 2014 10:40
- Forum: DOS Batch Forum
- Topic: BrainF*** Interpreter in Batch
- Replies: 61
- Views: 35634
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
Saso
- 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: 4954
Re: Echo not working on lines which got 0 at end of line
Sometimes it is better to do it like this:
Saso
Code: Select all
>>test.txt (Echo REPEAT : 3 : 0 : 0 : Enter the number of iterations: : 0 : 0)
Saso
- 20 Jun 2014 13:43
- Forum: DOS Batch Forum
- Topic: How to findstr strings that are German?
- Replies: 10
- Views: 10421
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 ...
- 20 Jun 2014 02:04
- Forum: DOS Batch Forum
- Topic: How to findstr strings that are German?
- Replies: 10
- Views: 10421
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...
- 14 Jun 2014 14:04
- Forum: DOS Batch Forum
- Topic: [Another] MENU system
- Replies: 2
- Views: 2544
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...
- 11 Jun 2014 10:02
- Forum: DOS Batch Forum
- Topic: [Another] MENU system
- Replies: 2
- Views: 2544
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 ...
- 09 Jun 2014 01:19
- Forum: DOS Batch Forum
- Topic: [Another] MENU system
- Replies: 2
- Views: 2544
[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 -----------------...
- 05 Jun 2014 02:02
- Forum: DOS Batch Forum
- Topic: Convert decimal to base N and vice versa
- Replies: 3
- Views: 3306
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...
- 03 Jun 2014 03:15
- Forum: DOS Batch Forum
- Topic: Convert decimal to base N and vice versa
- Replies: 3
- Views: 3306
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...
- 02 Jun 2014 13:38
- Forum: DOS Batch Forum
- Topic: Convert decimal numbers to base 36 and vice versa
- Replies: 5
- Views: 4938
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...
- 02 Jun 2014 12:02
- Forum: DOS Batch Forum
- Topic: Convert decimal numbers to base 36 and vice versa
- Replies: 5
- Views: 4938
Re: Convert decimal numbers to base 36 and vice versa
Aacini: thanks alot. Works perfectly.
Saso
Saso
- 02 Jun 2014 06:50
- Forum: DOS Batch Forum
- Topic: Convert decimal numbers to base 36 and vice versa
- Replies: 5
- Views: 4938
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...