Search found 239 matches

by pieh-ejdsch
22 Feb 2017 11:35
Forum: DOS Batch Forum
Topic: Need help with folder and files copy in CMD
Replies: 4
Views: 4314

Re: Need help with folder and files copy in CMD

Is it now only to the integration of a folder in a path which already contains the same name folder? I think that is exactly the problem which occurs with you. A batch which moves folders completely using MOVE is here: https://www.administrator.de/contentid/193384#comment-791624 To use without call ...
by pieh-ejdsch
20 Feb 2017 15:24
Forum: DOS Batch Forum
Topic: Need help copying files from android phone
Replies: 6
Views: 7864

Re: Need help copying files from android phone

Theres is an Option Debug Mode in Settings.
this can be enabled

wen you plug in your USB-cable it will list 3 Modes.
- USB
- Windows XP kompatible and
- Phone

use XP Mode to become access like an Diskdrive.

Phil
by pieh-ejdsch
19 Feb 2017 22:29
Forum: DOS Batch Forum
Topic: Using many "tokens=..." in FOR /F command in a simple way
Replies: 59
Views: 84591

Re: Using many "tokens=..." in FOR /F command in a simple way

Excuse me, that I so scripted in your script. I'm posting the unfinished part for now. This is unofficially the third change. 'Please, just post the tokens order' - i cannot do that. It is generated automatically. @echo off set prompt=$G$S setlocal enabledelayedexpansion set exclude="," &q...
by pieh-ejdsch
19 Feb 2017 15:37
Forum: DOS Batch Forum
Topic: Using many "tokens=..." in FOR /F command in a simple way
Replies: 59
Views: 84591

Re: Using many "tokens=..." in FOR /F command in a simple way

I have made an other version. It will sort all the Tokens with topologic sort.
This will give acess over 190 tokens and full tokens over 207. This runs on every Windows.
Next time I would have more tokens in deep of string.
Phil
by pieh-ejdsch
07 Feb 2017 16:39
Forum: DOS Batch Forum
Topic: Using many "tokens=..." in FOR /F command in a simple way
Replies: 59
Views: 84591

Re: Using many "tokens=..." in FOR /F command in a simple way

Hello Antonio, Hello Antonio, I still have not managed more than thirty-two to process tokens simultaneously in the output in this situation. In and of itself only the input on this token number has to be minimized. To get some more tokens out of the file this should go with it. https://www.administ...
by pieh-ejdsch
06 Feb 2017 15:57
Forum: DOS Batch Forum
Topic: Help on getting file size in proper manner
Replies: 9
Views: 7073

Re: Help on getting file size in proper manner

Oh a converter ... So it should calculate and display. From bytes over Mib; MB; Terabyte; PiB and EB, you can calculate everything here as you wish. @echo off setlocal set /a oneMB=1024*1024*1024 for %%i in ( 1048576 1048575 1000000000 1024 1023 365 645378829 999999999999999999999 10234567888299 %on...
by pieh-ejdsch
30 Jan 2017 06:41
Forum: DOS Batch Forum
Topic: About "Read words separated by space in a batch script"
Replies: 1
Views: 3290

Re: About "Read words separated by space in a batch script"

You must not generate the line jump seperat, he can be in a loop also into a variable created. Around an exclamation point which was read in a loop to output, the delayed variable representation must be deactivated. @echo off setlocal disableDelayedExpansion for %%L in (^"^ %== !LF -- this is a...
by pieh-ejdsch
27 Jan 2017 10:06
Forum: DOS Batch Forum
Topic: proof of concept: alternate asynchronous non-blocking input
Replies: 7
Views: 8247

Re: proof of concept: alternate asynchronous non-blocking input

for a Little bit asyncron mode more @echo off setlocal title :,0," if /I {%1}=={input} goto input if /I {%1}=={output} goto output rem use TAB to EXIT for /f "delims= " %%T in ('robocopy /L . . /njh /njs' )do set "TAB=%%T" set "title=1234567890987654321" title %tit...
by pieh-ejdsch
26 Jan 2017 07:55
Forum: DOS Batch Forum
Topic: Problem with Data from Parentheses to be Piped to Findstr
Replies: 6
Views: 6231

Re: Problem with Data from Parentheses to be Piped to Findstr

command IF is parsing two times.
It also run without auxiliary variables:

Code: Select all

for /l %%. in (1,1,%l%) do if :!c_%%.:~0^,1!==:4 echo !c_%%.!
Phil
by pieh-ejdsch
20 Jan 2017 16:46
Forum: DOS Batch Forum
Topic: Delete files older than 15 days & ignore file names with "Month" string
Replies: 4
Views: 4098

Re: Delete files older than 15 days & ignore file names with "Month" string

Compo wrote:You could probably use a quicker method:


more quicker than is this
RoboCopy "%_target%" "%_scratch%" /XF %_pattern% /create /Move /MinAge:%_daysage%
RD/S/Q "%_scratch%"


Phil
by pieh-ejdsch
18 Jan 2017 13:50
Forum: DOS Batch Forum
Topic: How do i get error code from diskpart in batch file?
Replies: 5
Views: 4815

Re: How do i get error code from diskpart in batch file?

The issue is: the list is not subdivided properly. If the Volumename is 2-part the allocation becomes wrong. instead, you must read in the whole line and assign this into a variable - then must be subdivided in the suitable offset. With the help of these limbs you can process the mistake after a con...
by pieh-ejdsch
06 Jan 2017 12:57
Forum: DOS Batch Forum
Topic: FOR command / batch including DIR
Replies: 28
Views: 19901

Re: FOR command / batch including DIR

The file system at MFT or FAT is like a table of contents (TOC) in books or an archive file. If the file stored on the hard disk is recorded on these repositories. Your files are listed in this list. When you duplicate your files, this list is read and treated one by one like the table of contents. ...
by pieh-ejdsch
02 Jan 2017 13:29
Forum: DOS Batch Forum
Topic: Renaming recursively files with alphabetical order
Replies: 17
Views: 17075

Re: Renaming recursively files with alphabetical order

call :seperate ------------- if is around test data from the original data in eien seperaten working folder / test Folder to copy. The function is summarised after the condition into a block. Because the function still settings stands Needed this before the end of her Settings It looks unusual a li...
by pieh-ejdsch
01 Jan 2017 15:48
Forum: DOS Batch Forum
Topic: Renaming recursively files with alphabetical order
Replies: 17
Views: 17075

Re: Renaming recursively files with alphabetical order

If the file list is given in a simple ForLoop, the file name is always right. The file name is falsified only by a For/f loop at name. This can be simply tested for /r D:\music %i in (*) do @for /f "delims=" %A in ('dir /s /b "%i"' ) do @if not exist %A echo %A not found! Because...
by pieh-ejdsch
29 Dec 2016 19:09
Forum: DOS Batch Forum
Topic: Renaming recursively files with alphabetical order
Replies: 17
Views: 17075

Re: Renaming recursively files with alphabetical order

you want so @echo OFF setlocal set "process=@echo ren" rem set process=ren set "Folder=d:\music" set "Files=*.mp3 *.flac" rem Setting Directory and File prezero set /a DN=100 ,FN=10000 rem END Settings set prompt=$g$s for /f "delims= " %%T in ('robocopy /L . ....