Search found 28 matches

by alid0381
04 Sep 2016 10:43
Forum: DOS Batch Forum
Topic: Create a small Dictionary [ A B C ]
Replies: 6
Views: 6173

Re: Create a small Dictionary [ A B C ]

Tanks foxidrive; But:

I find it hard in the translation
however,
Will not remain
The downside to pose problems
by alid0381
30 Aug 2016 10:45
Forum: DOS Batch Forum
Topic: Create a small Dictionary [ A B C ]
Replies: 6
Views: 6173

Re: Create a small Dictionary [ A B C ]

Thanks aGerman :
Now, It's working..
by alid0381
30 Aug 2016 10:40
Forum: DOS Batch Forum
Topic: Create a small Dictionary [ A B C ]
Replies: 6
Views: 6173

Re: Create a small Dictionary [ A B C ]

Tanks Acini;

a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
aaa
aab
aac
aba
abb
...
cccc.
by alid0381
29 Aug 2016 10:43
Forum: DOS Batch Forum
Topic: Create a small Dictionary [ A B C ]
Replies: 6
Views: 6173

Create a small Dictionary [ A B C ]

everybody Thank you so much. I want to make a small batch to create a small dictionary : @echo off setlocal enableDelayedExpansion ( ( call :One ) < "SOURC.txt" ) > "Out-Dic.txt" endlocal goto :eof :One set "bu=" set "input=" set /P "input=" set &quo...
by alid0381
30 Jan 2014 11:02
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

I miss you experts ... Thanks penpen and Aacini You understand me Excellent explanation.. Aacini, I liked your script : ... for %%a in (15 15 10 lenOfDMAi lenOfCL.Mi lenOfccRi) do ( ... Were replaced by numbers.. ... for %%a in (10 15 15 8 4 7 9 10 7 80 5 2 3 10) do ( ... But Only the first three ro...
by alid0381
22 Jan 2014 10:18
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

What if the Nomi touches PNomi Means: Nomi is in the max (max 15 characters, in our example) and PNomi is in the max (max 15 characters) Output, Would certainly like this : ... "i","NomiPNomi ","Addi ","DMAi ","CL.Mi ","ccRi" ...
by alid0381
22 Jan 2014 09:15
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

I mean
Can I split : 185 to :

Code: Select all

echo  "i","%1:~0,15%","%1:~16,30%","%1:~31,k%","%1:~k+1,l%",....,"%1:~n,185%">>"z.txt"

:!: :?: :idea:
by alid0381
22 Jan 2014 09:14
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

I mean
Can I split : 185 to :

Code: Select all

echo  "i","%1:~0,15%","%1:~16,30%","%1:~31,k%","%1:~k+1,l%",....,"%1:~n,185%">>"z.txt"

:!: :?: :idea:
by alid0381
22 Jan 2014 07:26
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

Thanks PenPen :D
Now, It's working..

The result is like this form :

Code: Select all

Nomi PNomi Addi DMAi CL.Mi ccRi


But, Can I make it like this form :

Code: Select all

"i","Nomi ","PNomi ","Addi ","DMAi ","CL.Mi ","ccRi"

... :? :?:
by alid0381
21 Jan 2014 13:02
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

penpen See this <Database> : .... TADJSE01 NNNN PPPPPPPP 19941001F3 630.00 0.00 630.0006/2009 0.001 01TADJSE011 NNNNNNNNN PPPPPP 19900401F3 630.00 0.00 630.0012/2001F.C 2000.00 0.00 01TADJSE012..... TADJSE01,TADJMO10 : Addresse. (max 10 characters) NNNN,NNNNNNNNN : Names. (max 15 characters) PPPPPPP...
by alid0381
21 Jan 2014 12:34
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

Another explanation: I wrote this code @echo on mode 50,10&color a set i=0 for /F "skip=3 tokens=1 delims=" %%a in (CLOLG.txt) DO call :BBB %%a z.txt exit :BBB set /a k=185*%i%+%i% set /a l=185*(1+%i%)+%i% echo %1:~%k%,%l%%>>z.txt set /a i+=1 exit /B the result : %1:~0,185% <=> Nom1 PN...
by alid0381
21 Jan 2014 11:39
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

Yes penpen And what do you mean with "185 character and space": - 185 characters (spaces included) ∑max= 185 characters (spaces included) see : Nomi : min One letter and max 15 letters. PNomi : min One letter and max 15 letters. Addi : min One letter and max 10 letters. ... see If Nomi con...
by alid0381
21 Jan 2014 09:51
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

Also know the length of the field
It's 185 character and space :
Nomi<------ 185 character and space ------>ccRi
I would like to use this :

Code: Select all

echo %1:~%m%,%n%%>>z.txt

but I have not prospered.
by alid0381
21 Jan 2014 09:18
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Re: Put columns on lines [Mettre des colonnes sur des lignes

yes i knew that.. :shock:
But what is the solution :idea: :?: .
by alid0381
21 Jan 2014 06:28
Forum: DOS Batch Forum
Topic: Put columns on lines [Mettre des colonnes sur des lignes]
Replies: 24
Views: 17627

Put columns on lines [Mettre des colonnes sur des lignes]

Hello everybody, I have a text file "CLOLG.txt" that contains 4 Ligns : Ligne 1.... Ligne 2.... Ligne 3.... Nom1 PNom1 Add1 DMA1 CL.M1 ccR1Nom2 PNom2 Add2 DMA2 CL.M2 ccR2Nom3 PNom3 Add3 DMA3 CL.M3 ccR3 ... Nomi PNomi Addi DMAi CL.Mi ccRi ... I want the result as following : Ligne 1.... Lig...