Thanks for the update.
Saso
Search found 653 matches
- 26 Jan 2017 11:33
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 288800
- 09 Dec 2016 01:44
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 288800
Re: CONVERTCP.exe - Convert text from one code page to another
@aGerman: A translation from EBCDIC to ASCII was my initial thought that I had to use in the past. I did not check if current WinAPI can do this. So if this is not supperted by API then we can call it a 'custom' translation table. As I said: this was just an idea - the question is if it is really ne...
- 08 Dec 2016 08:18
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 288800
Re: CONVERTCP.exe - Convert text from one code page to another
...Then I'll leave it as it is unless somebody finds a bug or has a request to add another feature ... Maybe just an idea (probably not neeeded at the moment): Add a support for custom code page(s). convertcp.exe my_private_CP1 my_private_CP2 <file_in.txt >file_out.txt and there you have a translat...
- 06 Dec 2016 03:19
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 288800
Re: CONVERTCP.exe - Convert text from one code page to another
Thank you, Steffen! New release almost daily. Great!
Saso
Saso
- 25 Nov 2016 13:20
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 288800
Re: CONVERTCP.exe - Convert text from one code page to another
Again I must say Thank you! to aGerman for providing this program. As he mentioned I had very old MS-DOS 16-bit exe which does not work on x64. I received a source code from the author (written in Turbo Pascal). aGerman said that it is easier to write a program from scratch then to try and relink it...
- 22 Nov 2016 13:54
- Forum: DOS Batch Forum
- Topic: Different behaviour of a command on XP and WIN10
- Replies: 5
- Views: 5005
Re: Different behaviour of a command on XP and WIN10
The standard answer whenever trying to work with "problem" characters - Use delayed expansion. Works in all situations except when expanding FOR loop variable that may contain ! setlocal enableDelayedExpansion >temporary.cmmnt echo(!cmmnt! endlocal Dave Benham Thank you. Problem solved. S...
- 22 Nov 2016 07:50
- Forum: DOS Batch Forum
- Topic: Different behaviour of a command on XP and WIN10
- Replies: 5
- Views: 5005
Re: Different behaviour of a command on XP and WIN10
What can I do?
I see that commands:
and
are causing me problems if cmmnt contains ( or ).
I will see if this viewtopic.php?f=3&t=4213 helps me.
Thanks.
Saso
I see that commands:
Code: Select all
echo(%cmmnt%>temporary.cmmnt
and
Code: Select all
>temporary.cmmnt (echo(%cmmnt%)
are causing me problems if cmmnt contains ( or ).
I will see if this viewtopic.php?f=3&t=4213 helps me.
Thanks.
Saso
- 22 Nov 2016 05:56
- Forum: DOS Batch Forum
- Topic: Different behaviour of a command on XP and WIN10
- Replies: 5
- Views: 5005
Different behaviour of a command on XP and WIN10
Hello all! @echo off set cmmnt= &rem ONE SPACE <nul set /p "=%cmmnt%" >temporary.cmmnt for %%q in (temporary.cmmnt) do (set /a strlen=%%~zq) echo strlen=%strlen%_ Executing this on XP gives result 1, executing this on WIN10 gives rezult 0. Any ideas why? Changing the code to: @echo off...
- 08 Nov 2016 13:44
- Forum: DOS Batch Forum
- Topic: EXIT and & operator
- Replies: 1
- Views: 2448
EXIT and & operator
Let's have two .cmd procedures: a.cmd: @echo off echo A exit And b.cmd: @echo off echo B Now execute a.cmd and then b.cmd: c:\a.cmd&b.cmd Result: CMD window closes. Now change a.cmd to this: @echo off echo A goto :EOF (goto :EOF above could of course be omitted in this case). Execute it: c:\a.cm...
- 08 Nov 2016 13:37
- Forum: DOS Batch Forum
- Topic: How to display OFF and/or ON?
- Replies: 7
- Views: 6684
How to display OFF and/or ON?
How to display (echo) words OFF and ON on the screen? Of course these don't work: @echo off echo off echo on Result: c:\f>echo_test.cmd c:\f> Maybe this one (because echo. is used to display empty line): @echo off echo.off Result: c:\f>echo_test.cmd off c:\f> Of course we can use echo(off Anyone kno...
- 08 Nov 2016 13:28
- Forum: DOS Batch Forum
- Topic: Apply For...do command ??
- Replies: 5
- Views: 5220
Re: Apply For...do command ??
Until someone provides a solution this is what you can do:
1. copy all files to USB stick
2. on USB stick: delete files you don't need
Saso
1. copy all files to USB stick
2. on USB stick: delete files you don't need
Saso
- 07 Nov 2016 12:27
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 44
- Views: 277653
Re: Foxidrive has left us
Sad day, really. He really helped us all.
Statistics don't lie:
This shows how great he was. I am sure he will be missed.
RIP
Saso
P.S. Anyone knows how old was he?
Statistics don't lie:
Code: Select all
Joined: 10 Feb 2012 10:20
Last active: 24 Oct 2016 01:00
Total posts: 6033
This shows how great he was. I am sure he will be missed.
RIP
Saso
P.S. Anyone knows how old was he?
- 21 Sep 2016 12:11
- Forum: DOS Batch Forum
- Topic: &'s in WGET URLs
- Replies: 5
- Views: 8150
- 09 Jun 2016 01:41
- Forum: DOS Batch Forum
- Topic: Deleting a data subset from a set
- Replies: 4
- Views: 4760
Re: Deleting a data subset from a set
I think of doing it this way: 1. read the first file and write each field as a seperate record (or a separate file) 2. read the second file and check if whole record exists in the previous file (or if a file exists - if characters would allow creation of a such file). @echo off set str1=2 4 6 7 8 9 ...
- 15 Apr 2016 00:08
- Forum: DOS Batch Forum
- Topic: Fille spaces from the end of a string via "FOR" command
- Replies: 7
- Views: 8053
Re: Fille spaces from the end of a string via "FOR" command
You could use somethinig like this: @echo off set textvar=some text set textvar=%textvar% &rem 50 spaces set textvar=%textvar:~0,50% echo length 1 2 3 4 5 6_ echo length _123456789012345678901234567890123456789012345678901234567890_ echo textvar=_%textvar%_ Output c:\ length 1 2 3 4 5 6_ length ...