Search found 3390 matches

by aGerman
21 Mar 2019 03:55
Forum: DOS Batch Forum
Topic: Problem with correctly quoting in a FOR /F loop
Replies: 2
Views: 24

Re: Problem with correctly quoting in a FOR /F loop

Sometimes quoted paths require CALL. Try ...

Code: Select all

... in ('call "!adb!" !android_cmd!') do ...
Also maybe you have to escape the single quotes that are in the value of !android_cmd!.

Steffen
by aGerman
20 Mar 2019 12:14
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 122

Re: Get folder size to continue

Maybe it's just set "folder=%%~i" instead of set "folder=%%~fi" because the utility seems to prepend a url that somehow contains the current directory. Just try a little ...
by aGerman
20 Mar 2019 10:37
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 122

Re: Get folder size to continue

Can't help out here, sorry. I have no clue at all what syntax this mktorrent thingy requires.

Steffen
by aGerman
20 Mar 2019 09:10
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 5
Views: 38

Re: Files sync Help

Something like so

Code: Select all

@echo off
for /l %%i in () do (
  robocopy "\\server1\Images1" "\\server2\Images1"
  robocopy "\\server2\Images1" "\\server1\Images1"
  timeout /t 10 /nobreak
)
Just read the help message of robocopy if you think you'd need any additional options.

Steffen
by aGerman
20 Mar 2019 07:11
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 5
Views: 38

Re: Files sync Help

By default robocopy will only copy new or changed files. So what you could try is running two robocopy commands (one for each direction) in a loop. But you definitely have to omit the /mir switch because otherwise you would loose files that still don't exist in one of the folders. That also means th...
by aGerman
20 Mar 2019 06:20
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 5
Views: 38

Re: Files sync Help

As far as I know Windows doesn't have any tool on board to synchronize folders bi directionally.

Steffen
by aGerman
20 Mar 2019 06:13
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 122

Re: Get folder size to continue

Haha, yes. I picked con explicitly because it is a reserved name in order to make sure that there is no existing folder with already existing files that are the same as in the folder that shall be processed. But that's just an annoying message which doesn't cause the real problem. The actual problem...
by aGerman
19 Mar 2019 16:26
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 74
Views: 26825

Re: CONVERTCP.exe - Convert text from one code page to another

Fixed inconsistent processing of Byte Order Marks read from redirected streams. Virustotal scans of version 6.1: x86: https://www.virustotal.com/gui/file/2677c85d9b6c98955c32a7c3549baae31c7b1104cc9b08b94502f88df3f1e75e/detection x64: https://www.virustotal.com/gui/file/7be8ba49bfc34a5ea9b2c1ba920424...
by aGerman
17 Mar 2019 14:29
Forum: DOS Batch Forum
Topic: Problem creating a batch file with a mother-batch file
Replies: 2
Views: 61

Re: Problem creating a batch file with a mother-batch file

https://ss64.com/nt/syntax-esc.html https://www.robvanderwoude.com/escapechars.php The percent sign has a special meaning in Batch. It is used to expand variables and parameters to their value. In order to get a single percent sign as a literal expression you have to escape it. While most of other ...
by aGerman
17 Mar 2019 10:27
Forum: DOS Batch Forum
Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
Replies: 10
Views: 71

Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder

terryhenderson wrote:
17 Mar 2019 10:20
taken the entire day searching
Did you specify ECHO ON to see what command lines are processed? Or did you replace COPY with ECHO COPY in order to find out what's wrong with the paths passed to the copy command?
by aGerman
17 Mar 2019 09:54
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 74
Views: 26825

Re: CONVERTCP.exe - Convert text from one code page to another

I was acting on a proposal that I received on SourceForge. The default behavior of CONVERTCP is that it silently replaces all characters that are invalid or that don't exist in the passed code pages with either a replacement character or with an approximated ASCII character which looks similar but h...
by aGerman
17 Mar 2019 08:58
Forum: DOS Batch Forum
Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
Replies: 10
Views: 71

Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder

untested:

Code: Select all

for /r "C:\folderA" %%a in (*.mp3) do if exist "C:\folderB\%%~nxa" copy /y "C:\folderB\%%~nxa" "%%~a"
Steffen
by aGerman
17 Mar 2019 05:00
Forum: DOS Batch Forum
Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
Replies: 10
Views: 71

Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder

Still don't understand what problem you're facing. You explained that you only have one folder each where the .mp3 files ar saved. So just check these two.

Steffen
by aGerman
17 Mar 2019 04:54
Forum: DOS Batch Forum
Topic: BATCH interactions with opened .exe
Replies: 5
Views: 80

Re: BATCH interactions with opened .exe

Most of the commands can only handle plain text. They see what you would see if you open a file in a text editor. If you open a .xlsm file in a text editor you won't recognize anything of the content you see if you opened it in Excel. So again the answer is no.

Steffen
by aGerman
17 Mar 2019 04:49
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 122

Re: Get folder size to continue

Pick one folder and run only the robocopy command in a cmd shell. Like that:

Code: Select all

robocopy "D:\SeasonPack\Top.Gear.S24.HDTV.x264-MTB" "%temp%\con" /l /s /r:0 /nfl /ndl /njh
Let me know what output you're facing.

Steffen